VirtualBox

Changeset 103137 in vbox for trunk


Ignore:
Timestamp:
Jan 31, 2024 10:13:01 AM (13 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161385
Message:

Audio: More locking needed to avoid debug assertions when draining a stream on stream disable. This debug assertion will happen because EMT and the mixer's async I/O thread work on the same circular buffer. There can be situations, if no locking is being used, that the async I/O thread just has consumed the remaining data just a tad before EMT looks for remaining data within the same buffer when disabling the stream [Doxygen fix]. bugref:10354

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevSB16.cpp

    r103136 r103137  
    19401940 * @param   pcbRead     Where to return the DMA bytes read.
    19411941 *
    1942  * @thread  µEMT
     1942 * @thread  EMT
    19431943 */
    19441944static int sb16StreamDoDmaOutput(PSB16STATE pThis, PSB16STREAM pStream, int uDmaChan, uint32_t offDma, uint32_t cbDma,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette