2009/11/4 Johannes Sixt <j.sixt@xxxxxxxxxxxxx>: > Andrzej K. Haczewski schrieb: > >> +static __inline int win32_cond_init(win32_cond_t *cond) >> +{ >> + cond->waiters = 0; >> + >> + InitializeCriticalSection(&cond->waiters_lock); >> + >> + cond->sema = CreateSemaphore(NULL, 0, LONG_MAX, NULL); > > Wouldn't an Event object be lighter-weight? (I'm only guessing.) Both events and semaphores resolve to wait-able kernel objects; so neither is "lighter-weight" than the other. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html