Lines Matching refs:event_index
23 static void checkin_worker_thread(struct pthreadpool* threadpool, uint32_t event_index) { in checkin_worker_thread() argument
25 SetEvent(threadpool->completion_event[event_index]); in checkin_worker_thread()
29 static void wait_worker_threads(struct pthreadpool* threadpool, uint32_t event_index) { in wait_worker_threads() argument
47 const DWORD wait_status = WaitForSingleObject(threadpool->completion_event[event_index], INFINITE); in wait_worker_threads()
75 const uint32_t event_index = (last_command >> 31); in wait_for_new_command() local
76 const DWORD wait_status = WaitForSingleObject(threadpool->command_event[event_index], INFINITE); in wait_for_new_command()
126 const uint32_t event_index = command >> 31; in thread_main() local
127 checkin_worker_thread(threadpool, event_index); in thread_main()
255 const uint32_t event_index = (old_command >> 31); in pthreadpool_parallelize() local
256 BOOL reset_event_status = ResetEvent(threadpool->command_event[event_index ^ 1]); in pthreadpool_parallelize()
273 const BOOL set_event_status = SetEvent(threadpool->command_event[event_index]); in pthreadpool_parallelize()
295 wait_worker_threads(threadpool, event_index ^ 1); in pthreadpool_parallelize()
301 reset_event_status = ResetEvent(threadpool->completion_event[event_index]); in pthreadpool_parallelize()
330 const uint32_t event_index = (old_command >> 31); in pthreadpool_destroy() local
331 const BOOL set_event_status = SetEvent(threadpool->command_event[event_index]); in pthreadpool_destroy()