Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_threads.h
| Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | |||||
| void BLI_ticket_mutex_unlock(TicketMutex *ticket); | void BLI_ticket_mutex_unlock(TicketMutex *ticket); | ||||
| /* Condition */ | /* Condition */ | ||||
| typedef pthread_cond_t ThreadCondition; | typedef pthread_cond_t ThreadCondition; | ||||
| void BLI_condition_init(ThreadCondition *cond); | void BLI_condition_init(ThreadCondition *cond); | ||||
| void BLI_condition_wait(ThreadCondition *cond, ThreadMutex *mutex); | void BLI_condition_wait(ThreadCondition *cond, ThreadMutex *mutex); | ||||
| void BLI_condition_wait_global_mutex(ThreadCondition *cond, const int type); | |||||
| void BLI_condition_notify_one(ThreadCondition *cond); | void BLI_condition_notify_one(ThreadCondition *cond); | ||||
| void BLI_condition_notify_all(ThreadCondition *cond); | void BLI_condition_notify_all(ThreadCondition *cond); | ||||
| void BLI_condition_end(ThreadCondition *cond); | void BLI_condition_end(ThreadCondition *cond); | ||||
| /* ThreadWorkQueue | /* ThreadWorkQueue | ||||
| * | * | ||||
| * Thread-safe work queue to push work/pointers between threads. */ | * Thread-safe work queue to push work/pointers between threads. */ | ||||
| Show All 20 Lines | |||||