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

Comparing libev/ev.pod (file contents):
Revision 1.142 by root, Sun Apr 6 09:53:18 2008 UTC vs.
Revision 1.143 by root, Sun Apr 6 14:34:52 2008 UTC

2633=item C<EV_DEFAULT>, C<EV_DEFAULT_> 2633=item C<EV_DEFAULT>, C<EV_DEFAULT_>
2634 2634
2635Similar to the other two macros, this gives you the value of the default 2635Similar to the other two macros, this gives you the value of the default
2636loop, if multiple loops are supported ("ev loop default"). 2636loop, if multiple loops are supported ("ev loop default").
2637 2637
2638=item C<EV_DEFAULT_UC>, C<EV_DEFAULT_UC_>
2639
2640Usage identical to C<EV_DEFAULT> and C<EV_DEFAULT_>, but requires that the
2641default loop has been initialised (C<UC> == unchecked). Their behaviour
2642is undefined when the default loop has not been initialised by a previous
2643execution of C<EV_DEFAULT>, C<EV_DEFAULT_> or C<ev_default_init (...)>.
2644
2645It is often prudent to use C<EV_DEFAULT> when initialising the first
2646watcher in a function but use C<EV_DEFAULT_UC> afterwards.
2647
2638=back 2648=back
2639 2649
2640Example: Declare and initialise a check watcher, utilising the above 2650Example: Declare and initialise a check watcher, utilising the above
2641macros so it will work regardless of whether multiple loops are supported 2651macros so it will work regardless of whether multiple loops are supported
2642or not. 2652or not.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines