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

Comparing Coro/Coro/State.pm (file contents):
Revision 1.70 by root, Mon Dec 4 13:47:56 2006 UTC vs.
Revision 1.71 by root, Mon Dec 4 21:56:00 2006 UTC

105 eval { 105 eval {
106 my $coro = shift; 106 my $coro = shift;
107 $coro or die "transfer() to empty coroutine $coro"; 107 $coro or die "transfer() to empty coroutine $coro";
108 &$coro; 108 &$coro;
109 }; 109 };
110 print STDERR $@ if $@; 110 print STDERR $@ || "FATAL: Coro::State callback returned unexpectedly, exiting.\n";
111 _exit 254; 111 _exit 254;
112} 112}
113 113
114=item $old_save_flags = $state->save ([$new_save_flags]) 114=item $old_save_flags = $state->save ([$new_save_flags])
115 115
124 124
125 Constant Effect 125 Constant Effect
126 SAVE_DEFAV save/restore @_ 126 SAVE_DEFAV save/restore @_
127 SAVE_DEFSV save/restore $_ 127 SAVE_DEFSV save/restore $_
128 SAVE_ERRSV save/restore $@ 128 SAVE_ERRSV save/restore $@
129 SAVE_IRSSV save/restore $/ (the input record separator) 129 SAVE_IRSSV save/restore $/ (the Input Record Separator, slow)
130 SAVE_ALL everything that can be saved 130 SAVE_ALL everything that can be saved
131 131
132These constants are not exported by default. If you don't need any extra 132These constants are not exported by default. If you don't need any extra
133additional variables saved, use C<0> as the flags value. 133additional variables saved, use C<0> as the flags value.
134 134

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines