… | |
… | |
812 | $bool = $cv->ready |
812 | $bool = $cv->ready |
813 | Returns true when the condition is "true", i.e. whether "send" or |
813 | Returns true when the condition is "true", i.e. whether "send" or |
814 | "croak" have been called. |
814 | "croak" have been called. |
815 | |
815 | |
816 | $cb = $cv->cb ($cb->($cv)) |
816 | $cb = $cv->cb ($cb->($cv)) |
817 | This is a mutator function that returns the callback set and |
817 | This is a mutator function that returns the callback set (or "undef" |
818 | optionally replaces it before doing so. |
818 | if not) and optionally replaces it before doing so. |
819 | |
819 | |
820 | The callback will be called when the condition becomes "true", i.e. |
820 | The callback will be called when the condition becomes "true", i.e. |
821 | when "send" or "croak" are called, with the only argument being the |
821 | when "send" or "croak" are called, with the only argument being the |
822 | condition variable itself. If the condition is already true, the |
822 | condition variable itself. If the condition is already true, the |
823 | callback is called immediately when it is set. Calling "recv" inside |
823 | callback is called immediately when it is set. Calling "recv" inside |
824 | the callback or at any later time is guaranteed not to block. |
824 | the callback or at any later time is guaranteed not to block. |
|
|
825 | |
|
|
826 | Additionally, when the callback is invoked, it is also removed from |
|
|
827 | the condvar (reset to "undef"), so the condvar does not keep a |
|
|
828 | reference to the callback after invocation. |
825 | |
829 | |
826 | SUPPORTED EVENT LOOPS/BACKENDS |
830 | SUPPORTED EVENT LOOPS/BACKENDS |
827 | The available backend classes are (every class has its own manpage): |
831 | The available backend classes are (every class has its own manpage): |
828 | |
832 | |
829 | Backends that are autoprobed when no other event loop can be found. |
833 | Backends that are autoprobed when no other event loop can be found. |