… | |
… | |
1899 | This automatically includes \fIev.h\fR and puts all of its definitions (many |
1899 | This automatically includes \fIev.h\fR and puts all of its definitions (many |
1900 | of them macros) into the global namespace. All \*(C+ specific things are |
1900 | of them macros) into the global namespace. All \*(C+ specific things are |
1901 | put into the \f(CW\*(C`ev\*(C'\fR namespace. It should support all the same embedding |
1901 | put into the \f(CW\*(C`ev\*(C'\fR namespace. It should support all the same embedding |
1902 | options as \fIev.h\fR, most notably \f(CW\*(C`EV_MULTIPLICITY\*(C'\fR. |
1902 | options as \fIev.h\fR, most notably \f(CW\*(C`EV_MULTIPLICITY\*(C'\fR. |
1903 | .PP |
1903 | .PP |
1904 | Care has been taken to keep the overhead low. The only data member added |
1904 | Care has been taken to keep the overhead low. The only data member the \*(C+ |
1905 | to the C\-style watchers is the event loop the watcher is associated with |
1905 | classes add (compared to plain C\-style watchers) is the event loop pointer |
1906 | (or no additional members at all if you disable \f(CW\*(C`EV_MULTIPLICITY\*(C'\fR when |
1906 | that the watcher is associated with (or no additional members at all if |
1907 | embedding libev). |
1907 | you disable \f(CW\*(C`EV_MULTIPLICITY\*(C'\fR when embedding libev). |
1908 | .PP |
1908 | .PP |
1909 | Currently, functions and static and non-static member functions can be |
1909 | Currently, functions, and static and non-static member functions can be |
1910 | used as callbacks. Other types should be easy to add as long as they only |
1910 | used as callbacks. Other types should be easy to add as long as they only |
1911 | need one additional pointer for context. If you need support for other |
1911 | need one additional pointer for context. If you need support for other |
1912 | types of functors please contact the author (preferably after implementing |
1912 | types of functors please contact the author (preferably after implementing |
1913 | it). |
1913 | it). |
1914 | .PP |
1914 | .PP |