X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/7f61bc3d979ef53b867172664694f8fcf9e5bdd0..97157ad66d6312deeafc15a8e80ef6f83f2b0de2:/ev.html diff --git a/ev.html b/ev.html index efd79da..738d6d0 100644 --- a/ev.html +++ b/ev.html @@ -6,7 +6,7 @@ - +
@@ -1742,11 +1742,11 @@ the callback model to a model using method callbacks on objects. of them macros) into the global namespace. All C++ specific things are put into theev
namespace. It should support all the same embedding
options as ev.h, most notably EV_MULTIPLICITY
.
-Care has been taken to keep the overhead low. The only data member added
-to the C-style watchers is the event loop the watcher is associated with
-(or no additional members at all if you disable EV_MULTIPLICITY
when
-embedding libev).
Currently, functions and static and non-static member functions can be +
Care has been taken to keep the overhead low. The only data member the C++
+classes add (compared to plain C-style watchers) is the event loop pointer
+that the watcher is associated with (or no additional members at all if
+you disable EV_MULTIPLICITY
when embedding libev).
Currently, functions, and static and non-static member functions can be used as callbacks. Other types should be easy to add as long as they only need one additional pointer for context. If you need support for other types of functors please contact the author (preferably after implementing