|
VLC
2.1.0-git
|

Data Structures | |
| struct | vlc_thread |
| Per-thread data. More... | |
| struct | vlc_threadvar |
| struct | vlc_timer |
Macros | |
| #define | Q2LL(q) ( *( long long * )&( q )) |
Enumerations | |
| enum | { CLOCK_REALTIME = 0, CLOCK_MONOTONIC } |
Functions | |
| static void | vlc_cancel_self (PVOID dummy) |
| static ULONG | vlc_DosWaitEventSemEx (HEV hev, ULONG ulTimeout, BOOL fCancelable) |
| static ULONG | vlc_WaitForSingleObject (HEV hev, ULONG ulTimeout) |
| static ULONG | vlc_Sleep (ULONG ulTimeout) |
| int | _CRT_init (void) |
| void | _CRT_term (void) |
| unsigned long _System | _DLL_InitTerm (unsigned long, unsigned long) |
| void | vlc_mutex_init (vlc_mutex_t *p_mutex) |
| void | vlc_mutex_init_recursive (vlc_mutex_t *p_mutex) |
| void | vlc_mutex_destroy (vlc_mutex_t *p_mutex) |
| void | vlc_mutex_lock (vlc_mutex_t *p_mutex) |
| int | vlc_mutex_trylock (vlc_mutex_t *p_mutex) |
| void | vlc_mutex_unlock (vlc_mutex_t *p_mutex) |
| static void | vlc_cond_init_common (vlc_cond_t *p_condvar, unsigned clock) |
| void | vlc_cond_init (vlc_cond_t *p_condvar) |
| void | vlc_cond_init_daytime (vlc_cond_t *p_condvar) |
| void | vlc_cond_destroy (vlc_cond_t *p_condvar) |
| void | vlc_cond_signal (vlc_cond_t *p_condvar) |
| void | vlc_cond_broadcast (vlc_cond_t *p_condvar) |
| void | vlc_cond_wait (vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex) |
| int | vlc_cond_timedwait (vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex, mtime_t deadline) |
| int | vlc_threadvar_create (vlc_threadvar_t *p_tls, void(*destr)(void *)) |
| void | vlc_threadvar_delete (vlc_threadvar_t *p_tls) |
| int | vlc_threadvar_set (vlc_threadvar_t key, void *value) |
| void * | vlc_threadvar_get (vlc_threadvar_t key) |
| void | vlc_threads_setup (libvlc_int_t *p_libvlc) |
| static void | vlc_thread_cleanup (struct vlc_thread *th) |
| static void | vlc_entry (void *p) |
| static int | vlc_clone_attr (vlc_thread_t *p_handle, bool detached, void *(*entry)(void *), void *data, int priority) |
| int | vlc_clone (vlc_thread_t *p_handle, void *(*entry)(void *), void *data, int priority) |
| void | vlc_join (vlc_thread_t th, void **result) |
| int | vlc_clone_detach (vlc_thread_t *p_handle, void *(*entry)(void *), void *data, int priority) |
| int | vlc_set_priority (vlc_thread_t th, int priority) |
| void | vlc_cancel (vlc_thread_t thread_id) |
| int | vlc_savecancel (void) |
| void | vlc_restorecancel (int state) |
| void | vlc_testcancel (void) |
| void | vlc_control_cancel (int cmd,...) |
| static int | vlc_select (int nfds, fd_set *rdset, fd_set *wrset, fd_set *exset, struct timeval *timeout) |
| int | vlc_poll (struct pollfd *fds, unsigned nfds, int timeout) |
| mtime_t | mdate (void) |
| void | mwait ((mtime_t deadline)) |
| void | msleep ((mtime_t delay)) |
| static void | vlc_timer_do (void *arg) |
| int | vlc_timer_create (vlc_timer_t *id, void(*func)(void *), void *data) |
| void | vlc_timer_destroy (vlc_timer_t timer) |
| void | vlc_timer_schedule (vlc_timer_t timer, bool absolute, mtime_t value, mtime_t interval) |
| unsigned | vlc_timer_getoverrun (vlc_timer_t timer) |
| unsigned | vlc_GetCPUCount (void) |
Variables | |
| static vlc_threadvar_t | thread_key |
| static vlc_mutex_t | super_mutex |
| static vlc_cond_t | super_variable |
| vlc_rwlock_t | config_lock |
| vlc_rwlock_t | msg_lock |
| Store all data required by messages interfaces. | |
| struct vlc_threadvar * | vlc_threadvar_last |
| #define Q2LL | ( | q | ) | ( *( long long * )&( q )) |
Referenced by mdate().
| int _CRT_init | ( | void | ) |
Referenced by _DLL_InitTerm().
| void _CRT_term | ( | void | ) |
Referenced by _DLL_InitTerm().
| unsigned long _System _DLL_InitTerm | ( | unsigned long | hmod, |
| unsigned long | flag | ||
| ) |
| mtime_t mdate | ( | void | ) |
References freq, lldiv(), Q2LL, lldiv_t::quot, and lldiv_t::rem.
| void mwait | ( | (mtime_t deadline) | ) |
References mdate(), unlikely, vlc_Sleep(), and vlc_testcancel().
| void vlc_cancel | ( | vlc_thread_t | thread_id | ) |
|
static |
References vlc_thread::killed, and likely.
Referenced by vlc_DosWaitEventSemEx(), and vlc_testcancel().
| int vlc_clone | ( | vlc_thread_t * | p_handle, |
| void *(*)(void *) | entry, | ||
| void * | data, | ||
| int | priority | ||
| ) |
References vlc_clone_attr().
|
static |
References vlc_thread::cancel_event, vlc_thread::cancel_sock, vlc_thread::cleaners, vlc_thread::data, vlc_thread::detached, vlc_thread::done_event, vlc_thread::entry, vlc_thread::killable, vlc_thread::killed, vlc_thread::tid, unlikely, and vlc_entry().
Referenced by vlc_clone(), and vlc_clone_detach().
| int vlc_clone_detach | ( | vlc_thread_t * | p_handle, |
| void *(*)(void *) | entry, | ||
| void * | data, | ||
| int | priority | ||
| ) |
References vlc_clone_attr().
| void vlc_cond_broadcast | ( | vlc_cond_t * | p_condvar | ) |
| void vlc_cond_destroy | ( | vlc_cond_t * | p_condvar | ) |
| void vlc_cond_init | ( | vlc_cond_t * | p_condvar | ) |
References CLOCK_MONOTONIC, and vlc_cond_init_common().
|
static |
Referenced by vlc_cond_init(), and vlc_cond_init_daytime().
| void vlc_cond_init_daytime | ( | vlc_cond_t * | p_condvar | ) |
References CLOCK_REALTIME, and vlc_cond_init_common().
| void vlc_cond_signal | ( | vlc_cond_t * | p_condvar | ) |
References vlc_cond_broadcast().
| int vlc_cond_timedwait | ( | vlc_cond_t * | p_condvar, |
| vlc_mutex_t * | p_mutex, | ||
| mtime_t | deadline | ||
| ) |
References CLOCK_FREQ, CLOCK_MONOTONIC, CLOCK_REALTIME, mdate(), msleep, vlc_mutex_lock(), vlc_mutex_unlock(), vlc_testcancel(), and vlc_WaitForSingleObject().
| void vlc_cond_wait | ( | vlc_cond_t * | p_condvar, |
| vlc_mutex_t * | p_mutex | ||
| ) |
References msleep, vlc_mutex_lock(), vlc_mutex_unlock(), vlc_testcancel(), and vlc_WaitForSingleObject().
| void vlc_control_cancel | ( | int | cmd, |
| ... | |||
| ) |
|
static |
References vlc_thread::cancel_event, thread_key, vlc_cancel_self(), and vlc_threadvar_get().
Referenced by vlc_Sleep(), and vlc_WaitForSingleObject().
|
static |
References vlc_thread::data, vlc_thread::done_event, vlc_thread::entry, vlc_thread::killable, thread_key, vlc_thread_cleanup(), and vlc_threadvar_set().
Referenced by vlc_clone_attr().
| unsigned vlc_GetCPUCount | ( | void | ) |
| void vlc_join | ( | vlc_thread_t | th, |
| void ** | result | ||
| ) |
References vlc_testcancel(), and vlc_WaitForSingleObject().
| void vlc_mutex_destroy | ( | vlc_mutex_t * | p_mutex | ) |
| void vlc_mutex_init | ( | vlc_mutex_t * | p_mutex | ) |
| void vlc_mutex_init_recursive | ( | vlc_mutex_t * | p_mutex | ) |
| void vlc_mutex_lock | ( | vlc_mutex_t * | p_mutex | ) |
References super_mutex, super_variable, vlc_cond_wait(), vlc_mutex_lock(), vlc_mutex_unlock(), vlc_restorecancel(), and vlc_savecancel().
| int vlc_mutex_trylock | ( | vlc_mutex_t * | p_mutex | ) |
References super_mutex, vlc_mutex_lock(), and vlc_mutex_unlock().
| void vlc_mutex_unlock | ( | vlc_mutex_t * | p_mutex | ) |
References super_mutex, super_variable, vlc_cond_broadcast(), vlc_mutex_lock(), and vlc_mutex_unlock().
| int vlc_poll | ( | struct pollfd * | fds, |
| unsigned | nfds, | ||
| int | timeout | ||
| ) |
References pollfd::fd, POLLIN, POLLOUT, POLLPRI, pollfd::revents, and vlc_select().
| void vlc_restorecancel | ( | int | state | ) |
References vlc_thread::killable, thread_key, and vlc_threadvar_get().
| int vlc_savecancel | ( | void | ) |
References vlc_thread::killable, thread_key, and vlc_threadvar_get().
|
static |
References vlc_thread::cancel_sock, thread_key, vlc_testcancel(), and vlc_threadvar_get().
Referenced by vlc_poll().
| int vlc_set_priority | ( | vlc_thread_t | th, |
| int | priority | ||
| ) |
|
static |
References vlc_DosWaitEventSemEx().
Referenced by mwait().
| void vlc_testcancel | ( | void | ) |
|
static |
| void vlc_threads_setup | ( | libvlc_int_t * | p_libvlc | ) |
| int vlc_threadvar_create | ( | vlc_threadvar_t * | p_tls, |
| void(*)(void *) | destr | ||
| ) |
| void vlc_threadvar_delete | ( | vlc_threadvar_t * | p_tls | ) |
| void* vlc_threadvar_get | ( | vlc_threadvar_t | key | ) |
| int vlc_threadvar_set | ( | vlc_threadvar_t | key, |
| void * | value | ||
| ) |
| int vlc_timer_create | ( | vlc_timer_t * | id, |
| void(*)(void *) | func, | ||
| void * | data | ||
| ) |
Referenced by main().
| void vlc_timer_destroy | ( | vlc_timer_t | timer | ) |
Referenced by main().
|
static |
References count, vlc_timer::data, vlc_timer::func, vlc_timer::hev, vlc_timer::htimer, vlc_timer::interval, and vlc_timer::quit.
Referenced by vlc_timer_create().
| unsigned vlc_timer_getoverrun | ( | vlc_timer_t | timer | ) |
Referenced by callback(), and main().
| void vlc_timer_schedule | ( | vlc_timer_t | timer, |
| bool | absolute, | ||
| mtime_t | value, | ||
| mtime_t | interval | ||
| ) |
Referenced by main().
|
static |
References vlc_DosWaitEventSemEx().
Referenced by vlc_cond_timedwait(), vlc_cond_wait(), and vlc_join().
| vlc_rwlock_t config_lock |
| vlc_rwlock_t msg_lock |
Store all data required by messages interfaces.
|
static |
|
static |
Referenced by _DLL_InitTerm(), vlc_mutex_lock(), and vlc_mutex_unlock().
|
static |
Referenced by _DLL_InitTerm(), vlc_control_cancel(), vlc_DosWaitEventSemEx(), vlc_entry(), vlc_restorecancel(), vlc_savecancel(), vlc_select(), and vlc_testcancel().
| struct vlc_threadvar * vlc_threadvar_last |
Referenced by vlc_thread_cleanup(), vlc_threadvar_create(), and vlc_threadvar_delete().
1.8.1.2