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

Comparing Coro/Coro.pm (file contents):
Revision 1.266 by root, Wed Aug 26 07:41:07 2009 UTC vs.
Revision 1.268 by root, Thu Oct 1 23:16:27 2009 UTC

67 67
68=cut 68=cut
69 69
70package Coro; 70package Coro;
71 71
72use strict qw(vars subs); 72use common::sense;
73no warnings "uninitialized"; 73
74use Carp ();
74 75
75use Guard (); 76use Guard ();
76 77
77use Coro::State; 78use Coro::State;
78 79
153handlers), then it must be prepared to be called recursively itself. 154handlers), then it must be prepared to be called recursively itself.
154 155
155=cut 156=cut
156 157
157$idle = sub { 158$idle = sub {
158 require Carp; 159 warn "oi\n";#d#
159 Carp::croak ("FATAL: deadlock detected"); 160 Carp::confess ("FATAL: deadlock detected");
160}; 161};
161 162
162# this coro is necessary because a coro 163# this coro is necessary because a coro
163# cannot destroy itself. 164# cannot destroy itself.
164our @destroy; 165our @destroy;
857 858
858 859
859=head1 WINDOWS PROCESS EMULATION 860=head1 WINDOWS PROCESS EMULATION
860 861
861A great many people seem to be confused about ithreads (for example, Chip 862A great many people seem to be confused about ithreads (for example, Chip
862Salzenberg called me unintelligent, incapable, stupid and ingullible, 863Salzenberg called me unintelligent, incapable, stupid and gullible,
863while in the same mail making rather confused statements about perl 864while in the same mail making rather confused statements about perl
864ithreads (for example, that memory or files would be shared), showing his 865ithreads (for example, that memory or files would be shared), showing his
865lack of understanding of this area - if it is hard to understand for Chip, 866lack of understanding of this area - if it is hard to understand for Chip,
866it is probably not obvious to everybody). 867it is probably not obvious to everybody).
867 868

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines