Commit Graph

47 Commits (b7dea53d180e7349a92394693646f8907f70964a)

Author SHA1 Message Date
Marc Alexander Lehmann 0aad32c7de *** empty log message *** 2009-12-26 09:21:54 +00:00
Marc Alexander Lehmann b2b052d5c4 *** empty log message *** 2009-08-22 20:40:02 +00:00
Marc Alexander Lehmann afbc64b517 *** empty log message *** 2009-07-10 00:36:21 +00:00
Marc Alexander Lehmann 5e60624df6 *** empty log message *** 2008-12-03 15:23:44 +00:00
Marc Alexander Lehmann 986cf79a3f *** empty log message *** 2008-11-05 14:36:18 +00:00
Marc Alexander Lehmann b6aad328f7 *** empty log message *** 2008-11-03 14:27:06 +00:00
Marc Alexander Lehmann e98cef2c16 *** empty log message *** 2008-09-30 18:35:47 +00:00
Marc Alexander Lehmann d658943665 *** empty log message *** 2008-05-17 12:15:30 +00:00
Marc Alexander Lehmann a955c39530 *** empty log message *** 2008-04-15 04:34:07 +00:00
Marc Alexander Lehmann 69bba30c26 *** empty log message *** 2008-01-28 11:43:37 +00:00
Marc Alexander Lehmann 7a8a81bbe7 *** empty log message *** 2008-01-25 15:45:08 +00:00
Marc Alexander Lehmann bc293bede0 indent, don't throw in loop_ref, make urxvt compile again 2008-01-22 18:09:23 +00:00
llucax 28cad79c44 Use #if !EV_MULTIPLICITY instead of #ifndef because it should be defined always. 2008-01-22 17:57:17 +00:00
llucax 09a0cd707d Remove remaining EV_THROW macro calls. 2008-01-22 17:56:54 +00:00
llucax 6a0dd54043 loop_ref constructor don't throw anything if EV_MULTIPLICITY is false. 2008-01-22 17:56:29 +00:00
Marc Alexander Lehmann 907c58d001 make excptions mandatory but stdexcept.h not, make \!EV_MULTIPLICITY compile 2008-01-19 00:49:06 +00:00
Marc Alexander Lehmann 4d08211a95 throw declarations are fine any time 2008-01-19 00:39:38 +00:00
llucax 0f140ad22b Add exceptions support to C++ interface.
Add exception specification and a ev::bad_loop exception that is thrown
when a loop can't be initialized.
2008-01-18 18:15:35 +00:00
llucax a836b93fee Add missing ev_time () to ev namespace, but renamed as now ().
Note there is no colission with ev_now (), which is a member function of
loop_ref named in the C++ interface.
2008-01-18 18:15:01 +00:00
llucax 8218239271 Add loop wrappers to C++ interface.
3 new classes are provided: loop_ref, dynamic_loop and default_loop.

loop_ref has value semantics and is just a pointer wrapper (but with
reference syntax). You can change a ev_loop* for a loop_ref and
vice-versa without notice. You can create (or asign) a loop_ref from
a ev_loop* and you can cast a loop_ref to a ev_loop*. You can check
for equality between loop_refs and ev_loop pointers. No clean-up is done
by a loop_ref.

dynamic_loop and default_loop have both reference semantics (they are
non-copiable and non-assignable), and provide automatic destruction.
2008-01-18 18:14:41 +00:00
llucax 888247c72c Add missing feed_event () method to base watchers class. 2008-01-18 18:14:23 +00:00
llucax 41a0047f88 Add missing free functions to ev namespace. 2008-01-18 18:13:57 +00:00
llucax 4b62c8e39d Add missing constants to ev namespace. 2008-01-18 18:13:40 +00:00
llucax 9a6f0043cb Move typedef and constant to the top. 2008-01-18 18:13:21 +00:00
llucax fef12f5966 Remove private implementation of watcher's copy ctor and operator=. 2008-01-18 18:12:42 +00:00
Marc Alexander Lehmann 95a9270715 *** empty log message *** 2008-01-10 06:00:55 +00:00
Marc Alexander Lehmann 441f6880c4 *** empty log message *** 2007-12-25 07:05:45 +00:00
Marc Alexander Lehmann 2a9e0df433 *** empty log message *** 2007-12-20 08:17:57 +00:00
Marc Alexander Lehmann a833e4a491 *** empty log message *** 2007-12-14 17:47:52 +00:00
Marc Alexander Lehmann ab41c6612e fucked up++ watchers again 2007-12-11 03:18:33 +00:00
Marc Alexander Lehmann bf86fed66d fix c++ interface 2007-12-08 14:27:38 +00:00
Marc Alexander Lehmann 19fc194840 document c++ callbacks! 2007-12-07 20:13:08 +00:00
Marc Alexander Lehmann 4989fff209 applied fix by chris brody 2007-12-05 00:09:35 +00:00
Marc Alexander Lehmann 435ffedd0e *** empty log message *** 2007-12-04 17:08:05 +00:00
Marc Alexander Lehmann 79531a989f complete c++ overhaul 2007-12-04 16:23:29 +00:00
Marc Alexander Lehmann de0d38140f fix bug reported by chris brody 2007-11-29 17:36:35 +00:00
Marc Alexander Lehmann 97ec2832ad great idea. radically simplify the method callbacks 2007-11-27 22:31:52 +00:00
Marc Alexander Lehmann 93e0a445b7 *** empty log message *** 2007-11-27 11:06:03 +00:00
Marc Alexander Lehmann b2a7836d18 docs 2007-11-27 10:59:10 +00:00
Marc Alexander Lehmann ff5ffd9908 update c++ if 2007-11-27 08:20:41 +00:00
Marc Alexander Lehmann 669bbc0040 document c++ api 2007-11-24 09:48:37 +00:00
Marc Alexander Lehmann 16572bb3c5 use a static method as thunk, saving codesize and better hiding. didn't know this was possible 2007-11-14 06:08:13 +00:00
Marc Alexander Lehmann a6e7c5d3b5 fix ev++ 2007-11-14 04:45:07 +00:00
Marc Alexander Lehmann 2318d410a3 do away with ev++.C 2007-11-11 16:58:25 +00:00
Marc Alexander Lehmann 4e4ecb8dc4 fix bug 2007-11-11 01:07:35 +00:00
Marc Alexander Lehmann eeea948092 make timers best-effort non-drifting 2007-11-11 00:05:59 +00:00
Marc Alexander Lehmann b07765847b first rough cut at c++ interface 2007-11-10 21:19:29 +00:00