summaryrefslogtreecommitdiff
path: root/ev.h
diff options
context:
space:
mode:
Diffstat (limited to 'ev.h')
-rw-r--r--ev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ev.h b/ev.h
index 5a3d152..11b7cc2 100644
--- a/ev.h
+++ b/ev.h
@@ -326,6 +326,8 @@ typedef struct ev_async
EV_ATOMIC_T sent; /* private */
} ev_async;
+
+# define ev_async_pending(w) (((w)->sent + 0)
#endif
/* the presence of this union forces similar struct layout */