ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro.pm
(Generate patch)

Comparing Coro/Coro.pm (file contents):
Revision 1.244 by root, Sat Dec 13 22:08:13 2008 UTC vs.
Revision 1.245 by root, Sun Dec 14 19:52:58 2008 UTC

315Terminates the current coroutine with the given status values (see L<cancel>). 315Terminates the current coroutine with the given status values (see L<cancel>).
316 316
317=item killall 317=item killall
318 318
319Kills/terminates/cancels all coroutines except the currently running 319Kills/terminates/cancels all coroutines except the currently running
320one. This is useful after a fork, either in the child or the parent, as 320one. This can be useful after a fork, either in the child or the parent,
321usually only one of them should inherit the running coroutines. 321as usually only one of them should inherit the running coroutines.
322
323Note that in the implementation, destructors run as normal, making this
324function not so useful after a fork. Future versions of this function
325might try to free resources without running any code.
322 326
323Note that while this will try to free some of the main programs resources, 327Note that while this will try to free some of the main programs resources,
324you cannot free all of them, so if a coroutine that is not the main 328you cannot free all of them, so if a coroutine that is not the main
325program calls this function, there will be some one-time resource leak. 329program calls this function, there will be some one-time resource leak.
326 330

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines