262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
|
static OF_INLINE bool
of_condition_broadcast(of_condition_t *condition)
{
#if defined(OF_HAVE_PTHREADS)
return !pthread_cond_broadcast(condition);
#elif defined(_WIN32)
size_t i;
for (i = 0; i < condition->count; i++)
if (!SetEvent(condition->event))
return false;
return true;
#endif
|
|
|
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
|
static OF_INLINE bool
of_condition_broadcast(of_condition_t *condition)
{
#if defined(OF_HAVE_PTHREADS)
return !pthread_cond_broadcast(condition);
#elif defined(_WIN32)
int i;
for (i = 0; i < condition->count; i++)
if (!SetEvent(condition->event))
return false;
return true;
#endif
|