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.352 by root, Sat Jun 20 08:58:50 2009 UTC vs.
Revision 1.353 by root, Mon Jun 22 11:25:53 2009 UTC

2477/* Coro::Semaphore & Coro::Signal */ 2477/* Coro::Semaphore & Coro::Signal */
2478 2478
2479static SV * 2479static SV *
2480coro_waitarray_new (pTHX_ int count) 2480coro_waitarray_new (pTHX_ int count)
2481{ 2481{
2482 /* a semaphore contains a counter IV in $sem->[0] and any waiters after that */ 2482 /* a waitarray=semaphore contains a counter IV in $sem->[0] and any waiters after that */
2483 AV *av = newAV (); 2483 AV *av = newAV ();
2484 SV **ary; 2484 SV **ary;
2485 2485
2486 /* unfortunately, building manually saves memory */ 2486 /* unfortunately, building manually saves memory */
2487 Newx (ary, 2, SV *); 2487 Newx (ary, 2, SV *);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines