… | |
… | |
130 | for more info. |
130 | for more info. |
131 | |
131 | |
132 | The loop will automatically be destroyed when it is no longer referenced |
132 | The loop will automatically be destroyed when it is no longer referenced |
133 | by any watcher and the loop object goes out of scope. |
133 | by any watcher and the loop object goes out of scope. |
134 | |
134 | |
135 | Using C<EV::FLAG_FORKCHECK> is recommended, as only the default event loop |
135 | If you are not embedding the loop, then Using C<EV::FLAG_FORKCHECK> |
136 | is protected by this module. |
136 | is recommended, as only the default event loop is protected by this |
|
|
137 | module. If you I<are> embedding this loop in the default loop, this is not |
|
|
138 | necessary, as C<EV::embed> automatically does the right thing on fork. |
137 | |
139 | |
138 | =item $loop->loop_fork |
140 | =item $loop->loop_fork |
139 | |
141 | |
140 | Must be called after a fork in the child, before entering or continuing |
142 | Must be called after a fork in the child, before entering or continuing |
141 | the event loop. An alternative is to use C<EV::FLAG_FORKCHECK> which calls |
143 | the event loop. An alternative is to use C<EV::FLAG_FORKCHECK> which calls |