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

Comparing libev/ev.pod (file contents):
Revision 1.416 by root, Sun May 6 13:42:10 2012 UTC vs.
Revision 1.418 by sf-exg, Mon May 7 07:00:00 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
4554If programs implement their own fd to handle mapping on win32, then this 4554If programs implement their own fd to handle mapping on win32, then this
4555macro can be used to override the C<close> function, useful to unregister 4555macro can be used to override the C<close> function, useful to unregister
4556file descriptors again. Note that the replacement function has to close 4556file descriptors again. Note that the replacement function has to close
4557the underlying OS handle. 4557the underlying OS handle.
4558 4558
4559=item EV_USE_WSASOCKET
4560
4561If defined to be C<1>, libev will use C<WSASocket> to create its internal
4562communication socket, which works better in some environments. Otherwise,
4563the normal C<socket> function will be used, which works better in other
4564environments.
4565
4559=item EV_USE_POLL 4566=item EV_USE_POLL
4560 4567
4561If defined to be C<1>, libev will compile in support for the C<poll>(2) 4568If defined to be C<1>, libev will compile in support for the C<poll>(2)
4562backend. Otherwise it will be enabled on non-win32 platforms. It 4569backend. Otherwise it will be enabled on non-win32 platforms. It
4563takes precedence over select. 4570takes precedence over select.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines