Go to the documentation of this file.
43 CoInitializeEx( NULL, COINIT_MULTITHREADED );
104 assert( p_mta != NULL );
106 if ( i_refcount == 0 )
109 if ( i_refcount == 0 )
void vlc_sem_init(vlc_sem_t *sem, unsigned value)
Initializes a semaphore.
Definition: thread.c:325
#define var_SetAddress(o, n, p)
Definition: vlc_variables.h:260
#define vlc_global_lock(n)
Acquires a global mutex.
Definition: vlc_threads.h:1074
static bool vlc_mta_acquire(vlc_object_t *p_parent)
Ensure an MTA context will be available until vlc_mta_release gets called.
Definition: mta_holder.h:61
vlc_sem_t release_sem
Definition: mta_holder.h:55
void vlc_sem_destroy(vlc_sem_t *sem)
Deinitializes a semaphore.
Definition: thread.c:331
#define VLC_THREAD_PRIORITY_LOW
Definition: vlc_threads.h:321
static void vlc_mta_release(vlc_object_t *p_parent)
Releases a reference to the MTA holder.
Definition: mta_holder.h:99
struct vlc_mta_holder vlc_mta_holder
#define vlc_global_unlock(n)
Releases a global mutex.
Definition: vlc_threads.h:1079
int vlc_sem_post(vlc_sem_t *sem)
Increments the value of a semaphore.
Definition: thread.c:343
libvlc_int_t * libvlc
LibVLC instance.
Definition: vlc_common.h:441
int vlc_clone(vlc_thread_t *th, void *(*entry)(void *), void *data, int priority)
Creates and starts a new thread.
Definition: thread.c:263
vlc_sem_t ready_sem
Definition: mta_holder.h:54
vlc_thread_t thread
Definition: mta_holder.h:52
static void * MtaMainLoop(void *opaque)
Definition: mta_holder.h:39
void vlc_sem_wait(vlc_sem_t *sem)
Waits on a semaphore.
Definition: thread.c:357
Thread handle.
Definition: vlc_threads.h:252
Definition: mta_holder.h:31
The main vlc_object_t structure.
Definition: vlc_objects.h:39
#define var_InheritAddress(o, n)
Definition: vlc_variables.h:650
int i_refcount
Definition: mta_holder.h:53
#define var_CreateGetAddress(a, b)
Definition: vlc_variables.h:497
#define unlikely(p)
Definition: vlc_common.h:114
sem_t vlc_sem_t
Semaphore.
Definition: vlc_threads.h:297
struct vlc_common_members obj
Definition: vlc_objects.h:42
void vlc_join(vlc_thread_t handle, void **result)
Waits for a thread to complete (if needed), then destroys it.
Definition: thread.c:270