VLC 4.0.0-dev
Loading...
Searching...
No Matches
threads.h File Reference
Include dependency graph for threads.h:

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.
 

Macro Definition Documentation

◆ vlc_queuedmutex_assert

#define vlc_queuedmutex_assert (   m)    assert(vlc_queuedmutex_held(m))

◆ VLC_STATIC_QUEUEDMUTEX

#define VLC_STATIC_QUEUEDMUTEX   { 0, 0, 0 }

Function Documentation

◆ vlc_cond_timedwait_daytime()

int vlc_cond_timedwait_daytime ( vlc_cond_t cond,
vlc_mutex_t mutex,
time_t  deadline 
)

◆ vlc_queuedmutex_held()

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.

Note
To assert that the calling thread holds a lock, the helper macro vlc_queuedmutex_assert() should be used instead of this function.
Return values
falsethe mutex is not locked by the calling thread
truethe mutex is locked by the calling thread

References vlc_queuedmutex_t::owner, and vlc_thread_id().

◆ vlc_queuedmutex_init()

void vlc_queuedmutex_init ( vlc_queuedmutex_t m)

◆ vlc_queuedmutex_lock()

◆ vlc_queuedmutex_unlock()