… | |
… | |
336 | EV_WATCHER (ev_async) |
336 | EV_WATCHER (ev_async) |
337 | |
337 | |
338 | EV_ATOMIC_T sent; /* private */ |
338 | EV_ATOMIC_T sent; /* private */ |
339 | } ev_async; |
339 | } ev_async; |
340 | |
340 | |
341 | # define ev_async_pending(w) (((w)->sent + 0) |
341 | # define ev_async_pending(w) ((w)->sent + 0) |
342 | #endif |
342 | #endif |
343 | |
343 | |
344 | /* the presence of this union forces similar struct layout */ |
344 | /* the presence of this union forces similar struct layout */ |
345 | union ev_any_watcher |
345 | union ev_any_watcher |
346 | { |
346 | { |
… | |
… | |
364 | struct ev_fork fork; |
364 | struct ev_fork fork; |
365 | #endif |
365 | #endif |
366 | #if EV_EMBED_ENABLE |
366 | #if EV_EMBED_ENABLE |
367 | struct ev_embed embed; |
367 | struct ev_embed embed; |
368 | #endif |
368 | #endif |
369 | #if EV_ASYND_ENABLE |
369 | #if EV_ASYNC_ENABLE |
370 | struct ev_async async; |
370 | struct ev_async async; |
371 | #endif |
371 | #endif |
372 | }; |
372 | }; |
373 | |
373 | |
374 | /* bits for ev_default_loop and ev_loop_new */ |
374 | /* bits for ev_default_loop and ev_loop_new */ |