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 | |
int | vlc_cond_timedwait_daytime (vlc_cond_t *, vlc_mutex_t *, time_t) |
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 } |
int vlc_cond_timedwait_daytime | ( | vlc_cond_t * | cond, |
vlc_mutex_t * | mutex, | ||
time_t | deadline | ||
) |
References vlc_cond_waiter::value, vlc_atomic_timedwait_daytime(), vlc_cond_wait_finish(), and vlc_cond_wait_prepare().
Referenced by Manage().
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_ChangeViewpoint(), vout_ChangeZoom(), vout_FlushUnlocked(), vout_ReleaseDisplay(), and vout_Start().
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_ChangeViewpoint(), vout_ChangeZoom(), vout_FlushUnlocked(), vout_ReleaseDisplay(), and vout_Start().