ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.417 by root, Sun May 6 19:29:59 2012 UTC vs.
Revision 1.419 by root, Sun Jun 24 14:30:40 2012 UTC

3950libev sources can be compiled as C++. Therefore, code that uses the C API 3950libev sources can be compiled as C++. Therefore, code that uses the C API
3951will work fine. 3951will work fine.
3952 3952
3953Proper exception specifications might have to be added to callbacks passed 3953Proper exception specifications might have to be added to callbacks passed
3954to libev: exceptions may be thrown only from watcher callbacks, all 3954to libev: exceptions may be thrown only from watcher callbacks, all
3955other callbacks (allocator, syserr, loop acquire/release and periodioc 3955other callbacks (allocator, syserr, loop acquire/release and periodic
3956reschedule callbacks) must not throw exceptions, and might need a C<throw 3956reschedule callbacks) must not throw exceptions, and might need a C<throw
3957()> specification. If you have code that needs to be compiled as both C 3957()> specification. If you have code that needs to be compiled as both C
3958and C++ you can use the C<EV_THROW> macro for this: 3958and C++ you can use the C<EV_THROW> macro for this:
3959 3959
3960 static void 3960 static void
4121Associates a different C<struct ev_loop> with this watcher. You can only 4121Associates a different C<struct ev_loop> with this watcher. You can only
4122do this when the watcher is inactive (and not pending either). 4122do this when the watcher is inactive (and not pending either).
4123 4123
4124=item w->set ([arguments]) 4124=item w->set ([arguments])
4125 4125
4126Basically the same as C<ev_TYPE_set>, with the same arguments. Either this 4126Basically the same as C<ev_TYPE_set> (except for C<ev::embed> watchers>),
4127method or a suitable start method must be called at least once. Unlike the 4127with the same arguments. Either this method or a suitable start method
4128C counterpart, an active watcher gets automatically stopped and restarted 4128must be called at least once. Unlike the C counterpart, an active watcher
4129when reconfiguring it with this method. 4129gets automatically stopped and restarted when reconfiguring it with this
4130method.
4131
4132For C<ev::embed> watchers this method is called C<set_embed>, to avoid
4133clashing with the C<set (loop)> method.
4130 4134
4131=item w->start () 4135=item w->start ()
4132 4136
4133Starts the watcher. Note that there is no C<loop> argument, as the 4137Starts the watcher. Note that there is no C<loop> argument, as the
4134constructor already stores the event loop. 4138constructor already stores the event loop.
4559=item EV_USE_WSASOCKET 4563=item EV_USE_WSASOCKET
4560 4564
4561If defined to be C<1>, libev will use C<WSASocket> to create its internal 4565If defined to be C<1>, libev will use C<WSASocket> to create its internal
4562communication socket, which works better in some environments. Otherwise, 4566communication socket, which works better in some environments. Otherwise,
4563the normal C<socket> function will be used, which works better in other 4567the normal C<socket> function will be used, which works better in other
4564enviornments. 4568environments.
4565 4569
4566=item EV_USE_POLL 4570=item EV_USE_POLL
4567 4571
4568If defined to be C<1>, libev will compile in support for the C<poll>(2) 4572If defined to be C<1>, libev will compile in support for the C<poll>(2)
4569backend. Otherwise it will be enabled on non-win32 platforms. It 4573backend. Otherwise it will be enabled on non-win32 platforms. It

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines