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