Open Broadcaster Software
Free, open source software for live streaming and recording
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
threading.h File Reference

Go to the source code of this file.

Typedefs

typedef struct os_event_data os_event_t
 
typedef struct os_sem_data os_sem_t
 

Enumerations

enum  os_event_type { OS_EVENT_TYPE_AUTO, OS_EVENT_TYPE_MANUAL }
 

Functions

EXPORT int os_event_init (os_event_t **event, enum os_event_type type)
 
EXPORT void os_event_destroy (os_event_t *event)
 
EXPORT int os_event_wait (os_event_t *event)
 
EXPORT int os_event_timedwait (os_event_t *event, unsigned long milliseconds)
 
EXPORT int os_event_try (os_event_t *event)
 
EXPORT int os_event_signal (os_event_t *event)
 
EXPORT void os_event_reset (os_event_t *event)
 
EXPORT int os_sem_init (os_sem_t **sem, int value)
 
EXPORT void os_sem_destroy (os_sem_t *sem)
 
EXPORT int os_sem_post (os_sem_t *sem)
 
EXPORT int os_sem_wait (os_sem_t *sem)
 
EXPORT void os_set_thread_name (const char *name)
 

Typedef Documentation

typedef struct os_event_data os_event_t
typedef struct os_sem_data os_sem_t

Enumeration Type Documentation

Enumerator
OS_EVENT_TYPE_AUTO 
OS_EVENT_TYPE_MANUAL 

Function Documentation

EXPORT void os_event_destroy ( os_event_t event)
EXPORT int os_event_init ( os_event_t **  event,
enum os_event_type  type 
)
EXPORT void os_event_reset ( os_event_t event)
EXPORT int os_event_signal ( os_event_t event)
EXPORT int os_event_timedwait ( os_event_t event,
unsigned long  milliseconds 
)
EXPORT int os_event_try ( os_event_t event)
EXPORT int os_event_wait ( os_event_t event)
EXPORT void os_sem_destroy ( os_sem_t sem)
EXPORT int os_sem_init ( os_sem_t **  sem,
int  value 
)
EXPORT int os_sem_post ( os_sem_t sem)
EXPORT int os_sem_wait ( os_sem_t sem)
EXPORT void os_set_thread_name ( const char *  name)