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

Comparing Coro/Coro/State.xs (file contents):
Revision 1.138 by root, Sun Jan 14 20:49:45 2007 UTC vs.
Revision 1.139 by root, Sun Jan 14 21:13:41 2007 UTC

838 coro->flags |= CF_DESTROYED; 838 coro->flags |= CF_DESTROYED;
839 839
840 if (coro->flags & CF_READY) 840 if (coro->flags & CF_READY)
841 { 841 {
842 /* reduce nready, as destroying a ready coro effectively unreadies it */ 842 /* reduce nready, as destroying a ready coro effectively unreadies it */
843 /* alternative: look through all ready queues and remove it */ 843 /* alternative: look through all ready queues and remove the coro */
844 LOCK; 844 LOCK;
845 --coro_nready; 845 --coro_nready;
846 UNLOCK; 846 UNLOCK;
847 } 847 }
848 else 848 else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines