… | |
… | |
96 | loop is protected by this module. |
96 | loop is protected by this module. |
97 | |
97 | |
98 | $loop->loop_fork |
98 | $loop->loop_fork |
99 | Must be called after a fork in the child, before entering or |
99 | Must be called after a fork in the child, before entering or |
100 | continuing the event loop. An alternative is to use |
100 | continuing the event loop. An alternative is to use |
101 | "EV::FLAG_FORKCHECK" which calls this fucntion automatically, at |
101 | "EV::FLAG_FORKCHECK" which calls this function automatically, at |
102 | some performance loss (refer to the libev documentation). |
102 | some performance loss (refer to the libev documentation). |
103 | |
103 | |
|
|
104 | $loop->loop_verify |
|
|
105 | Calls "ev_verify" to make internal consistency checks (for debugging |
|
|
106 | libev) and abort the program if any data structures wree found to be |
|
|
107 | corrupted. |
|
|
108 | |
104 | $loop = EV::default_loop [$flags] |
109 | $loop = EV::default_loop [$flags] |
105 | Return the default loop (which is a singleton object). |
110 | Return the default loop (which is a singleton object). Since this |
|
|
111 | module already creates the default loop with default flags, |
|
|
112 | specifying flags here will not have any effect unless you destroy |
|
|
113 | the default loop. |
106 | |
114 | |
107 | BASIC INTERFACE |
115 | BASIC INTERFACE |
108 | $EV::DIED |
116 | $EV::DIED |
109 | Must contain a reference to a function that is called when a |
117 | Must contain a reference to a function that is called when a |
110 | callback throws an exception (with $@ containing the error). The |
118 | callback throws an exception (with $@ containing the error). The |