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

Comparing Coro/Coro/Specific.pm (file contents):
Revision 1.83 by root, Thu Nov 11 00:09:09 2010 UTC vs.
Revision 1.84 by root, Sat Feb 5 21:20:47 2011 UTC

15 15
16This module can be used to create variables (or better: references to 16This module can be used to create variables (or better: references to
17them) that are specific to the currently executing coroutine. This module 17them) that are specific to the currently executing coroutine. This module
18does not automatically load the Coro module (so the overhead will be small 18does not automatically load the Coro module (so the overhead will be small
19when no coroutines are used). 19when no coroutines are used).
20
21A much faster method is to store extra keys into C<%$Coro::current>
22- all you have to do is to make sure that the key is unique (e.g. by
23prefixing it with your module name). You can even store data there before
24loading the L<Coro> module - when Coro is loaded, the keys stored in
25C<%$Coro::current> are automatically attached to the coro thread executing
26the main program.
27
28You don't have to load C<Coro::Specific> manually, it will be loaded
29automatically when you C<use Coro> and call the C<new> constructor.
20 30
21=over 4 31=over 4
22 32
23=cut 33=cut
24 34

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines