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

Comparing Coro-Multicore/Multicore.pm (file contents):
Revision 1.5 by root, Mon Jun 29 13:15:53 2015 UTC vs.
Revision 1.6 by root, Mon Jun 29 13:33:48 2015 UTC

62 62
63 sub myfunc { 63 sub myfunc {
64 Coro::Multicore::scoped_enable; 64 Coro::Multicore::scoped_enable;
65 65
66 # from here to the end of this function, and in any functions 66 # from here to the end of this function, and in any functions
67 # callsed from this function, tasks will be executed asynchronously. 67 # called from this function, tasks will be executed asynchronously.
68
69 } 68 }
70 69
71=head1 API FUNCTIONS 70=head1 API FUNCTIONS
72 71
73=over 4 72=over 4
128 127
129TODO 128TODO
130 129
131=head1 BUGS 130=head1 BUGS
132 131
132=over 4
133
134=item (OS-) threads are never released
135
133At the moment, threads that were created once will never be freed. They 136At the moment, threads that were created once will never be freed. They
134will be reused for asynchronous requests, though, so a slong as you limit 137will be reused for asynchronous requests, though, so a slong as you limit
135the maximum number of concurrent asynchronous tasks, this will also limit 138the maximum number of concurrent asynchronous tasks, this will also limit
136the maximum number of threads created. 139the maximum number of threads created.
137 140
138Future versions will likely lift this limitation. 141Future versions will likely lift this limitation.
139 142
143=item AnyEvent is initalised on module load
144
145AnyEvent is initialised on module load, as opposed to at a later time.
146
147Future versions will likely change this.
148
149=back
150
140=head1 AUTHOR 151=head1 AUTHOR
141 152
142 Marc Lehmann <schmorp@schmorp.de> 153 Marc Lehmann <schmorp@schmorp.de>
143 http://software.schmorp.de/pkg/AnyEvent-XSThreadPool.html 154 http://software.schmorp.de/pkg/AnyEvent-XSThreadPool.html
144 155
156Additional thanks to Zsbán Ambrus, who gave considerable desing input for
157this module and the perl multicore specification.
158
145=cut 159=cut
146 160
1471 1611
148 162

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines