Lines Matching refs:event_count
59 size_t event_count; member
108 if (eloop.num_handles > eloop.reader_count + eloop.event_count + 8) in eloop_prepare_handles()
204 (eloop.event_count + 1) * sizeof(struct eloop_event)); in eloop_register_event()
208 tmp[eloop.event_count].eloop_data = eloop_data; in eloop_register_event()
209 tmp[eloop.event_count].user_data = user_data; in eloop_register_event()
210 tmp[eloop.event_count].handler = handler; in eloop_register_event()
211 tmp[eloop.event_count].event = h; in eloop_register_event()
212 eloop.event_count++; in eloop_register_event()
224 if (eloop.events == NULL || eloop.event_count == 0 || in eloop_unregister_event()
228 for (i = 0; i < eloop.event_count; i++) { in eloop_unregister_event()
232 if (i == eloop.event_count) in eloop_unregister_event()
235 if (i != eloop.event_count - 1) { in eloop_unregister_event()
237 (eloop.event_count - i - 1) * in eloop_unregister_event()
240 eloop.event_count--; in eloop_unregister_event()
465 eloop.event_count > 0)) { in eloop_run()
475 for (i = 0; i < eloop.event_count; i++) in eloop_run()
537 ret < WAIT_OBJECT_0 + eloop.event_count) { in eloop_run()
541 ret = WaitForMultipleObjects(eloop.event_count, in eloop_run()