summaryrefslogtreecommitdiff
path: root/ev++.h
diff options
context:
space:
mode:
authorroot <root>2007-12-07 20:13:08 +0000
committerroot <root>2007-12-07 20:13:08 +0000
commit7f61bc3d979ef53b867172664694f8fcf9e5bdd0 (patch)
treef6b6f43698f245e91cb76ba3a1244cb0ce440035 /ev++.h
parent39ca7b64db757c30ab6f0dc5dad63206f1d5a375 (diff)
document c++ callbacks!
Diffstat (limited to 'ev++.h')
-rw-r--r--ev++.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ev++.h b/ev++.h
index d7b4502..fea0ac1 100644
--- a/ev++.h
+++ b/ev++.h
@@ -56,10 +56,10 @@ namespace ev {
(obj->*method) (*self, revents);
}
- template<void (*function)(watcher &w, int)>
+ template<void (*function)(watcher &w, int), void *data = 0>
void set ()
{
- set_ (0, function_thunk<function>);
+ set_ (data, function_thunk<function>);
}
template<void (*function)(watcher &w, int)>