+void
+ev_clear_pending (EV_P_ void *w, int invoke)
+{
+ W w_ = (W)w;
+ int pending = w_->pending;
+
+ if (pending)
+ {
+ ANPENDING *p = pendings [ABSPRI (w_)] + pending - 1;
+
+ w_->pending = 0;
+ p->w = 0;
+
+ if (invoke)
+ EV_CB_INVOKE (w_, p->events);
+ }
+}
+