summaryrefslogtreecommitdiff
path: root/ev++.h
diff options
context:
space:
mode:
authorllucax <llucax>2008-01-18 18:14:23 +0000
committerllucax <llucax>2008-01-18 18:14:23 +0000
commit168dbe26f6016988116006b49fbb4362be416ab7 (patch)
tree22744a4f55b9125b5e74381179f24463a619300b /ev++.h
parent4f776fde71f96363bbbb7ac6570a0db2f0cfb8ba (diff)
Add missing feed_event () method to base watchers class.
Diffstat (limited to 'ev++.h')
-rw-r--r--ev++.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ev++.h b/ev++.h
index a823538..e3b9ba5 100644
--- a/ev++.h
+++ b/ev++.h
@@ -186,6 +186,11 @@ namespace ev {
{
return ev_is_pending (static_cast<const ev_watcher *>(this));
}
+
+ void feed_event (int revents)
+ {
+ ev_feed_event (EV_A_ static_cast<const ev_watcher *>(this), revents);
+ }
};
inline void delay (tstamp interval)