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.355 by root, Wed Jun 24 02:52:38 2009 UTC vs.
Revision 1.356 by root, Sat Jun 27 14:06:59 2009 UTC

3488MODULE = Coro::State PACKAGE = Coro::Semaphore 3488MODULE = Coro::State PACKAGE = Coro::Semaphore
3489 3489
3490SV * 3490SV *
3491new (SV *klass, SV *count = 0) 3491new (SV *klass, SV *count = 0)
3492 CODE: 3492 CODE:
3493{
3494 int semcnt = 1;
3495
3496 if (count)
3497 {
3498 SvGETMAGIC (count);
3499
3500 if (SvOK (count))
3501 semcnt = SvIV (count);
3502 }
3503
3493 RETVAL = sv_bless ( 3504 RETVAL = sv_bless (
3494 coro_waitarray_new (aTHX_ count && SvOK (count) ? SvIV (count) : 1), 3505 coro_waitarray_new (aTHX_ semcnt),
3495 GvSTASH (CvGV (cv)) 3506 GvSTASH (CvGV (cv))
3496 ); 3507 );
3508}
3497 OUTPUT: 3509 OUTPUT:
3498 RETVAL 3510 RETVAL
3499 3511
3500# helper for Coro::Channel and others 3512# helper for Coro::Channel and others
3501SV * 3513SV *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines