|
VLC 4.0.0-dev
|
Go to the source code of this file.
Data Structures | |
| struct | vlc_queuedmutex_t |
Macros | |
| #define | VLC_STATIC_QUEUEDMUTEX { 0, 0, 0 } |
| #define | vlc_queuedmutex_assert(m) assert(vlc_queuedmutex_held(m)) |
Functions | |
| void | vlc_queuedmutex_init (vlc_queuedmutex_t *m) |
| void | vlc_queuedmutex_lock (vlc_queuedmutex_t *m) |
| void | vlc_queuedmutex_unlock (vlc_queuedmutex_t *m) |
| bool | vlc_queuedmutex_held (vlc_queuedmutex_t *m) |
| Checks if a queued mutex is locked. | |
| #define vlc_queuedmutex_assert | ( | m | ) | assert(vlc_queuedmutex_held(m)) |
| #define VLC_STATIC_QUEUEDMUTEX { 0, 0, 0 } |
| bool vlc_queuedmutex_held | ( | vlc_queuedmutex_t * | m | ) |
Checks if a queued mutex is locked.
This function checks if the calling thread holds a given queued mutual exclusion lock. It has no side effects and is essentially intended for run-time debugging.
| false | the mutex is not locked by the calling thread |
| true | the mutex is locked by the calling thread |
References vlc_queuedmutex_t::owner, and vlc_thread_id().
| void vlc_queuedmutex_init | ( | vlc_queuedmutex_t * | m | ) |
References vlc_queuedmutex_t::head, vlc_queuedmutex_t::owner, and vlc_queuedmutex_t::tail.
Referenced by vout_Create().
| void vlc_queuedmutex_lock | ( | vlc_queuedmutex_t * | m | ) |
References vlc_queuedmutex_t::head, vlc_queuedmutex_t::owner, vlc_queuedmutex_t::tail, vlc_atomic_wait(), and vlc_thread_id().
Referenced by RenderPicture(), vout_ChangeCrop(), vout_ChangeDisplayAspectRatio(), vout_ChangeDisplayFitting(), vout_ChangeDisplaySize(), vout_ChangeIccProfile(), vout_ChangeProjection(), vout_ChangeViewpoint(), vout_ChangeZoom(), vout_ControlChangeStereo(), vout_FlushUnlocked(), vout_ReleaseDisplay(), vout_Start(), and vout_ToggleProjection().
| void vlc_queuedmutex_unlock | ( | vlc_queuedmutex_t * | m | ) |
References vlc_queuedmutex_t::head, vlc_queuedmutex_t::owner, and vlc_atomic_notify_all().
Referenced by RenderPicture(), vout_ChangeCrop(), vout_ChangeDisplayAspectRatio(), vout_ChangeDisplayFitting(), vout_ChangeDisplaySize(), vout_ChangeIccProfile(), vout_ChangeProjection(), vout_ChangeViewpoint(), vout_ChangeZoom(), vout_ControlChangeStereo(), vout_FlushUnlocked(), vout_ReleaseDisplay(), vout_Start(), and vout_ToggleProjection().