… | |
… | |
238 | enum { |
238 | enum { |
239 | CF_RUNNING = 0x0001, /* coroutine is running */ |
239 | CF_RUNNING = 0x0001, /* coroutine is running */ |
240 | CF_READY = 0x0002, /* coroutine is ready */ |
240 | CF_READY = 0x0002, /* coroutine is ready */ |
241 | CF_NEW = 0x0004, /* has never been switched to */ |
241 | CF_NEW = 0x0004, /* has never been switched to */ |
242 | CF_DESTROYED = 0x0008, /* coroutine data has been freed */ |
242 | CF_DESTROYED = 0x0008, /* coroutine data has been freed */ |
|
|
243 | CF_SUSPENDED = 0x0010, /* coroutine can't be scheduled */ |
243 | }; |
244 | }; |
244 | |
245 | |
245 | /* the structure where most of the perl state is stored, overlaid on the cxstack */ |
246 | /* the structure where most of the perl state is stored, overlaid on the cxstack */ |
246 | typedef struct |
247 | typedef struct |
247 | { |
248 | { |
… | |
… | |
285 | /* async_pool */ |
286 | /* async_pool */ |
286 | SV *saved_deffh; |
287 | SV *saved_deffh; |
287 | SV *invoke_cb; |
288 | SV *invoke_cb; |
288 | AV *invoke_av; |
289 | AV *invoke_av; |
289 | |
290 | |
|
|
291 | /* on_enter/on_leave */ |
|
|
292 | AV *on_enter; |
|
|
293 | AV *on_leave; |
|
|
294 | |
290 | /* linked list */ |
295 | /* linked list */ |
291 | struct coro *next, *prev; |
296 | struct coro *next, *prev; |
292 | }; |
297 | }; |
293 | |
298 | |
294 | typedef struct coro *Coro__State; |
299 | typedef struct coro *Coro__State; |
… | |
… | |
352 | INLINE CV * |
357 | INLINE CV * |
353 | coro_sv_2cv (pTHX_ SV *sv) |
358 | coro_sv_2cv (pTHX_ SV *sv) |
354 | { |
359 | { |
355 | HV *st; |
360 | HV *st; |
356 | GV *gvp; |
361 | GV *gvp; |
357 | return sv_2cv (sv, &st, &gvp, 0); |
362 | CV *cv = sv_2cv (sv, &st, &gvp, 0); |
|
|
363 | |
|
|
364 | if (!cv) |
|
|
365 | croak ("code reference expected"); |
|
|
366 | |
|
|
367 | return cv; |
358 | } |
368 | } |
359 | |
369 | |
360 | /*****************************************************************************/ |
370 | /*****************************************************************************/ |
361 | /* magic glue */ |
371 | /* magic glue */ |
362 | |
372 | |
… | |
… | |
521 | } |
531 | } |
522 | |
532 | |
523 | /** load & save, init *******************************************************/ |
533 | /** load & save, init *******************************************************/ |
524 | |
534 | |
525 | static void |
535 | static void |
|
|
536 | on_enterleave_call (pTHX_ SV *cb); |
|
|
537 | |
|
|
538 | static void |
526 | load_perl (pTHX_ Coro__State c) |
539 | load_perl (pTHX_ Coro__State c) |
527 | { |
540 | { |
528 | perl_slots *slot = c->slot; |
541 | perl_slots *slot = c->slot; |
529 | c->slot = 0; |
542 | c->slot = 0; |
530 | |
543 | |
… | |
… | |
556 | PUTBACK; |
569 | PUTBACK; |
557 | } |
570 | } |
558 | |
571 | |
559 | slf_frame = c->slf_frame; |
572 | slf_frame = c->slf_frame; |
560 | CORO_THROW = c->except; |
573 | CORO_THROW = c->except; |
|
|
574 | |
|
|
575 | if (expect_false (c->on_enter)) |
|
|
576 | { |
|
|
577 | int i; |
|
|
578 | |
|
|
579 | for (i = 0; i <= AvFILLp (c->on_enter); ++i) |
|
|
580 | on_enterleave_call (aTHX_ AvARRAY (c->on_enter)[i]); |
|
|
581 | } |
561 | } |
582 | } |
562 | |
583 | |
563 | static void |
584 | static void |
564 | save_perl (pTHX_ Coro__State c) |
585 | save_perl (pTHX_ Coro__State c) |
565 | { |
586 | { |
|
|
587 | if (expect_false (c->on_leave)) |
|
|
588 | { |
|
|
589 | int i; |
|
|
590 | |
|
|
591 | for (i = AvFILLp (c->on_leave); i >= 0; --i) |
|
|
592 | on_enterleave_call (aTHX_ AvARRAY (c->on_leave)[i]); |
|
|
593 | } |
|
|
594 | |
566 | c->except = CORO_THROW; |
595 | c->except = CORO_THROW; |
567 | c->slf_frame = slf_frame; |
596 | c->slf_frame = slf_frame; |
568 | |
597 | |
569 | { |
598 | { |
570 | dSP; |
599 | dSP; |
… | |
… | |
769 | #endif |
798 | #endif |
770 | |
799 | |
771 | /* |
800 | /* |
772 | * This overrides the default magic get method of %SIG elements. |
801 | * This overrides the default magic get method of %SIG elements. |
773 | * The original one doesn't provide for reading back of PL_diehook/PL_warnhook |
802 | * The original one doesn't provide for reading back of PL_diehook/PL_warnhook |
774 | * and instead of tryign to save and restore the hash elements, we just provide |
803 | * and instead of trying to save and restore the hash elements, we just provide |
775 | * readback here. |
804 | * readback here. |
776 | * We only do this when the hook is != 0, as they are often set to 0 temporarily, |
|
|
777 | * not expecting this to actually change the hook. This is a potential problem |
|
|
778 | * when a schedule happens then, but we ignore this. |
|
|
779 | */ |
805 | */ |
780 | static int |
806 | static int |
781 | coro_sigelem_get (pTHX_ SV *sv, MAGIC *mg) |
807 | coro_sigelem_get (pTHX_ SV *sv, MAGIC *mg) |
782 | { |
808 | { |
783 | const char *s = MgPV_nolen_const (mg); |
809 | const char *s = MgPV_nolen_const (mg); |
… | |
… | |
836 | if (strEQ (s, "__WARN__")) svp = &PL_warnhook; |
862 | if (strEQ (s, "__WARN__")) svp = &PL_warnhook; |
837 | |
863 | |
838 | if (svp) |
864 | if (svp) |
839 | { |
865 | { |
840 | SV *old = *svp; |
866 | SV *old = *svp; |
841 | *svp = newSVsv (sv); |
867 | *svp = SvOK (sv) ? newSVsv (sv) : 0; |
842 | SvREFCNT_dec (old); |
868 | SvREFCNT_dec (old); |
843 | return 0; |
869 | return 0; |
844 | } |
870 | } |
845 | } |
871 | } |
846 | |
872 | |
… | |
… | |
1357 | /* TODO: throwing up here is considered harmful */ |
1383 | /* TODO: throwing up here is considered harmful */ |
1358 | |
1384 | |
1359 | if (expect_true (prev != next)) |
1385 | if (expect_true (prev != next)) |
1360 | { |
1386 | { |
1361 | if (expect_false (!(prev->flags & (CF_RUNNING | CF_NEW)))) |
1387 | if (expect_false (!(prev->flags & (CF_RUNNING | CF_NEW)))) |
1362 | croak ("Coro::State::transfer called with a suspended prev Coro::State, but can only transfer from running or new states,"); |
1388 | croak ("Coro::State::transfer called with a blocked prev Coro::State, but can only transfer from running or new states,"); |
1363 | |
1389 | |
1364 | if (expect_false (next->flags & CF_RUNNING)) |
|
|
1365 | croak ("Coro::State::transfer called with running next Coro::State, but can only transfer to inactive states,"); |
|
|
1366 | |
|
|
1367 | if (expect_false (next->flags & CF_DESTROYED)) |
1390 | if (expect_false (next->flags & (CF_RUNNING | CF_DESTROYED | CF_SUSPENDED))) |
1368 | croak ("Coro::State::transfer called with destroyed next Coro::State, but can only transfer to inactive states,"); |
1391 | croak ("Coro::State::transfer called with running, destroyed or suspended next Coro::State, but can only transfer to inactive states,"); |
1369 | |
1392 | |
1370 | #if !PERL_VERSION_ATLEAST (5,10,0) |
1393 | #if !PERL_VERSION_ATLEAST (5,10,0) |
1371 | if (expect_false (PL_lex_state != LEX_NOTPARSING)) |
1394 | if (expect_false (PL_lex_state != LEX_NOTPARSING)) |
1372 | croak ("Coro::State::transfer called while parsing, but this is not supported in your perl version,"); |
1395 | croak ("Coro::State::transfer called while parsing, but this is not supported in your perl version,"); |
1373 | #endif |
1396 | #endif |
… | |
… | |
1461 | coro_state_destroy (pTHX_ struct coro *coro) |
1484 | coro_state_destroy (pTHX_ struct coro *coro) |
1462 | { |
1485 | { |
1463 | if (coro->flags & CF_DESTROYED) |
1486 | if (coro->flags & CF_DESTROYED) |
1464 | return 0; |
1487 | return 0; |
1465 | |
1488 | |
1466 | if (coro->on_destroy) |
1489 | if (coro->on_destroy && !PL_dirty) |
1467 | coro->on_destroy (aTHX_ coro); |
1490 | coro->on_destroy (aTHX_ coro); |
1468 | |
1491 | |
1469 | coro->flags |= CF_DESTROYED; |
1492 | coro->flags |= CF_DESTROYED; |
1470 | |
1493 | |
1471 | if (coro->flags & CF_READY) |
1494 | if (coro->flags & CF_READY) |
… | |
… | |
1480 | if (coro->mainstack |
1503 | if (coro->mainstack |
1481 | && coro->mainstack != main_mainstack |
1504 | && coro->mainstack != main_mainstack |
1482 | && coro->slot |
1505 | && coro->slot |
1483 | && !PL_dirty) |
1506 | && !PL_dirty) |
1484 | { |
1507 | { |
1485 | struct coro temp; |
1508 | struct coro *current = SvSTATE_current; |
1486 | |
1509 | |
1487 | assert (("FATAL: tried to destroy currently running coroutine", coro->mainstack != PL_mainstack)); |
1510 | assert (("FATAL: tried to destroy currently running coroutine", coro->mainstack != PL_mainstack)); |
1488 | |
1511 | |
1489 | save_perl (aTHX_ &temp); |
1512 | save_perl (aTHX_ current); |
1490 | load_perl (aTHX_ coro); |
1513 | load_perl (aTHX_ coro); |
1491 | |
1514 | |
1492 | coro_destruct_perl (aTHX_ coro); |
1515 | coro_destruct_perl (aTHX_ coro); |
1493 | |
1516 | |
1494 | load_perl (aTHX_ &temp); |
1517 | load_perl (aTHX_ current); |
1495 | |
1518 | |
1496 | coro->slot = 0; |
1519 | coro->slot = 0; |
1497 | } |
1520 | } |
1498 | |
1521 | |
1499 | cctx_destroy (coro->cctx); |
1522 | cctx_destroy (coro->cctx); |
… | |
… | |
1680 | if (expect_true (next_sv)) |
1703 | if (expect_true (next_sv)) |
1681 | { |
1704 | { |
1682 | struct coro *next = SvSTATE_hv (next_sv); |
1705 | struct coro *next = SvSTATE_hv (next_sv); |
1683 | |
1706 | |
1684 | /* cannot transfer to destroyed coros, skip and look for next */ |
1707 | /* cannot transfer to destroyed coros, skip and look for next */ |
1685 | if (expect_false (next->flags & CF_DESTROYED)) |
1708 | if (expect_false (next->flags & (CF_DESTROYED | CF_SUSPENDED))) |
1686 | SvREFCNT_dec (next_sv); /* coro_nready has already been taken care of by destroy */ |
1709 | SvREFCNT_dec (next_sv); /* coro_nready has already been taken care of by destroy */ |
1687 | else |
1710 | else |
1688 | { |
1711 | { |
1689 | next->flags &= ~CF_READY; |
1712 | next->flags &= ~CF_READY; |
1690 | --coro_nready; |
1713 | --coro_nready; |
… | |
… | |
2301 | |
2324 | |
2302 | PL_op->op_ppaddr = pp_slf; |
2325 | PL_op->op_ppaddr = pp_slf; |
2303 | /*PL_op->op_type = OP_CUSTOM; /* we do behave like entersub still */ |
2326 | /*PL_op->op_type = OP_CUSTOM; /* we do behave like entersub still */ |
2304 | |
2327 | |
2305 | PL_op = (OP *)&slf_restore; |
2328 | PL_op = (OP *)&slf_restore; |
|
|
2329 | } |
|
|
2330 | |
|
|
2331 | /*****************************************************************************/ |
|
|
2332 | /* dynamic wind */ |
|
|
2333 | |
|
|
2334 | static void |
|
|
2335 | on_enterleave_call (pTHX_ SV *cb) |
|
|
2336 | { |
|
|
2337 | dSP; |
|
|
2338 | |
|
|
2339 | PUSHSTACK; |
|
|
2340 | |
|
|
2341 | PUSHMARK (SP); |
|
|
2342 | PUTBACK; |
|
|
2343 | call_sv (cb, G_VOID | G_DISCARD); |
|
|
2344 | SPAGAIN; |
|
|
2345 | |
|
|
2346 | POPSTACK; |
|
|
2347 | } |
|
|
2348 | |
|
|
2349 | static SV * |
|
|
2350 | coro_avp_pop_and_free (pTHX_ AV **avp) |
|
|
2351 | { |
|
|
2352 | AV *av = *avp; |
|
|
2353 | SV *res = av_pop (av); |
|
|
2354 | |
|
|
2355 | if (AvFILLp (av) < 0) |
|
|
2356 | { |
|
|
2357 | *avp = 0; |
|
|
2358 | SvREFCNT_dec (av); |
|
|
2359 | } |
|
|
2360 | |
|
|
2361 | return res; |
|
|
2362 | } |
|
|
2363 | |
|
|
2364 | static void |
|
|
2365 | coro_pop_on_enter (pTHX_ void *coro) |
|
|
2366 | { |
|
|
2367 | SV *cb = coro_avp_pop_and_free (aTHX_ &((struct coro *)coro)->on_enter); |
|
|
2368 | SvREFCNT_dec (cb); |
|
|
2369 | } |
|
|
2370 | |
|
|
2371 | static void |
|
|
2372 | coro_pop_on_leave (pTHX_ void *coro) |
|
|
2373 | { |
|
|
2374 | SV *cb = coro_avp_pop_and_free (aTHX_ &((struct coro *)coro)->on_leave); |
|
|
2375 | on_enterleave_call (aTHX_ sv_2mortal (cb)); |
2306 | } |
2376 | } |
2307 | |
2377 | |
2308 | /*****************************************************************************/ |
2378 | /*****************************************************************************/ |
2309 | /* PerlIO::cede */ |
2379 | /* PerlIO::cede */ |
2310 | |
2380 | |
… | |
… | |
3008 | eval = 1 |
3078 | eval = 1 |
3009 | CODE: |
3079 | CODE: |
3010 | { |
3080 | { |
3011 | if (coro->mainstack && ((coro->flags & CF_RUNNING) || coro->slot)) |
3081 | if (coro->mainstack && ((coro->flags & CF_RUNNING) || coro->slot)) |
3012 | { |
3082 | { |
3013 | struct coro temp; |
3083 | struct coro *current = SvSTATE_current; |
3014 | |
3084 | |
3015 | if (!(coro->flags & CF_RUNNING)) |
3085 | if (current != coro) |
3016 | { |
3086 | { |
3017 | PUTBACK; |
3087 | PUTBACK; |
3018 | save_perl (aTHX_ &temp); |
3088 | save_perl (aTHX_ current); |
3019 | load_perl (aTHX_ coro); |
3089 | load_perl (aTHX_ coro); |
|
|
3090 | SPAGAIN; |
3020 | } |
3091 | } |
3021 | |
3092 | |
3022 | { |
|
|
3023 | dSP; |
|
|
3024 | ENTER; |
|
|
3025 | SAVETMPS; |
|
|
3026 | PUTBACK; |
|
|
3027 | PUSHSTACK; |
3093 | PUSHSTACK; |
|
|
3094 | |
3028 | PUSHMARK (SP); |
3095 | PUSHMARK (SP); |
|
|
3096 | PUTBACK; |
3029 | |
3097 | |
3030 | if (ix) |
3098 | if (ix) |
3031 | eval_sv (coderef, 0); |
3099 | eval_sv (coderef, 0); |
3032 | else |
3100 | else |
3033 | call_sv (coderef, G_KEEPERR | G_EVAL | G_VOID | G_DISCARD); |
3101 | call_sv (coderef, G_KEEPERR | G_EVAL | G_VOID | G_DISCARD); |
3034 | |
3102 | |
3035 | POPSTACK; |
3103 | POPSTACK; |
3036 | SPAGAIN; |
3104 | SPAGAIN; |
3037 | FREETMPS; |
|
|
3038 | LEAVE; |
|
|
3039 | PUTBACK; |
|
|
3040 | } |
|
|
3041 | |
3105 | |
3042 | if (!(coro->flags & CF_RUNNING)) |
3106 | if (current != coro) |
3043 | { |
3107 | { |
|
|
3108 | PUTBACK; |
3044 | save_perl (aTHX_ coro); |
3109 | save_perl (aTHX_ coro); |
3045 | load_perl (aTHX_ &temp); |
3110 | load_perl (aTHX_ current); |
3046 | SPAGAIN; |
3111 | SPAGAIN; |
3047 | } |
3112 | } |
3048 | } |
3113 | } |
3049 | } |
3114 | } |
3050 | |
3115 | |
… | |
… | |
3054 | ALIAS: |
3119 | ALIAS: |
3055 | is_ready = CF_READY |
3120 | is_ready = CF_READY |
3056 | is_running = CF_RUNNING |
3121 | is_running = CF_RUNNING |
3057 | is_new = CF_NEW |
3122 | is_new = CF_NEW |
3058 | is_destroyed = CF_DESTROYED |
3123 | is_destroyed = CF_DESTROYED |
|
|
3124 | is_suspended = CF_SUSPENDED |
3059 | CODE: |
3125 | CODE: |
3060 | RETVAL = boolSV (coro->flags & ix); |
3126 | RETVAL = boolSV (coro->flags & ix); |
3061 | OUTPUT: |
3127 | OUTPUT: |
3062 | RETVAL |
3128 | RETVAL |
3063 | |
3129 | |
… | |
… | |
3128 | SV **dst = ix ? (SV **)&self->slot->defav : (SV **)&self->slot->defsv; |
3194 | SV **dst = ix ? (SV **)&self->slot->defav : (SV **)&self->slot->defsv; |
3129 | |
3195 | |
3130 | SV *tmp = *src; *src = *dst; *dst = tmp; |
3196 | SV *tmp = *src; *src = *dst; *dst = tmp; |
3131 | } |
3197 | } |
3132 | |
3198 | |
|
|
3199 | void |
|
|
3200 | cancel (Coro::State self) |
|
|
3201 | CODE: |
|
|
3202 | coro_state_destroy (aTHX_ self); |
|
|
3203 | coro_call_on_destroy (aTHX_ self); /* actually only for Coro objects */ |
|
|
3204 | |
3133 | |
3205 | |
3134 | MODULE = Coro::State PACKAGE = Coro |
3206 | MODULE = Coro::State PACKAGE = Coro |
3135 | |
3207 | |
3136 | BOOT: |
3208 | BOOT: |
3137 | { |
3209 | { |
… | |
… | |
3211 | cede_notself (...) |
3283 | cede_notself (...) |
3212 | CODE: |
3284 | CODE: |
3213 | CORO_EXECUTE_SLF_XS (slf_init_cede_notself); |
3285 | CORO_EXECUTE_SLF_XS (slf_init_cede_notself); |
3214 | |
3286 | |
3215 | void |
3287 | void |
3216 | _cancel (Coro::State self) |
|
|
3217 | CODE: |
|
|
3218 | coro_state_destroy (aTHX_ self); |
|
|
3219 | coro_call_on_destroy (aTHX_ self); |
|
|
3220 | |
|
|
3221 | void |
|
|
3222 | _set_current (SV *current) |
3288 | _set_current (SV *current) |
3223 | PROTOTYPE: $ |
3289 | PROTOTYPE: $ |
3224 | CODE: |
3290 | CODE: |
3225 | SvREFCNT_dec (SvRV (coro_current)); |
3291 | SvREFCNT_dec (SvRV (coro_current)); |
3226 | SvRV_set (coro_current, SvREFCNT_inc_NN (SvRV (current))); |
3292 | SvRV_set (coro_current, SvREFCNT_inc_NN (SvRV (current))); |
… | |
… | |
3332 | rouse_wait (...) |
3398 | rouse_wait (...) |
3333 | PROTOTYPE: ;$ |
3399 | PROTOTYPE: ;$ |
3334 | PPCODE: |
3400 | PPCODE: |
3335 | CORO_EXECUTE_SLF_XS (slf_init_rouse_wait); |
3401 | CORO_EXECUTE_SLF_XS (slf_init_rouse_wait); |
3336 | |
3402 | |
|
|
3403 | void |
|
|
3404 | on_enter (SV *block) |
|
|
3405 | ALIAS: |
|
|
3406 | on_leave = 1 |
|
|
3407 | PROTOTYPE: & |
|
|
3408 | CODE: |
|
|
3409 | { |
|
|
3410 | struct coro *coro = SvSTATE_current; |
|
|
3411 | AV **avp = ix ? &coro->on_leave : &coro->on_enter; |
|
|
3412 | |
|
|
3413 | block = (SV *)coro_sv_2cv (aTHX_ block); |
|
|
3414 | |
|
|
3415 | if (!*avp) |
|
|
3416 | *avp = newAV (); |
|
|
3417 | |
|
|
3418 | av_push (*avp, SvREFCNT_inc (block)); |
|
|
3419 | |
|
|
3420 | if (!ix) |
|
|
3421 | on_enterleave_call (aTHX_ block); |
|
|
3422 | |
|
|
3423 | LEAVE; /* pp_entersub unfortunately forces an ENTER/LEAVE around xs calls */ |
|
|
3424 | SAVEDESTRUCTOR_X (ix ? coro_pop_on_leave : coro_pop_on_enter, (void *)coro); |
|
|
3425 | ENTER; /* pp_entersub unfortunately forces an ENTER/LEAVE around xs calls */ |
|
|
3426 | } |
|
|
3427 | |
3337 | |
3428 | |
3338 | MODULE = Coro::State PACKAGE = PerlIO::cede |
3429 | MODULE = Coro::State PACKAGE = PerlIO::cede |
3339 | |
3430 | |
3340 | BOOT: |
3431 | BOOT: |
3341 | PerlIO_define_layer (aTHX_ &PerlIO_cede); |
3432 | PerlIO_define_layer (aTHX_ &PerlIO_cede); |
… | |
… | |
3351 | GvSTASH (CvGV (cv)) |
3442 | GvSTASH (CvGV (cv)) |
3352 | ); |
3443 | ); |
3353 | OUTPUT: |
3444 | OUTPUT: |
3354 | RETVAL |
3445 | RETVAL |
3355 | |
3446 | |
3356 | # helper for Coro::Channel |
3447 | # helper for Coro::Channel and others |
3357 | SV * |
3448 | SV * |
3358 | _alloc (int count) |
3449 | _alloc (int count) |
3359 | CODE: |
3450 | CODE: |
3360 | RETVAL = coro_waitarray_new (aTHX_ count); |
3451 | RETVAL = coro_waitarray_new (aTHX_ count); |
3361 | OUTPUT: |
3452 | OUTPUT: |
… | |
… | |
3419 | for (i = 1; i <= wcount; ++i) |
3510 | for (i = 1; i <= wcount; ++i) |
3420 | PUSHs (sv_2mortal (newRV_inc (AvARRAY (av)[i]))); |
3511 | PUSHs (sv_2mortal (newRV_inc (AvARRAY (av)[i]))); |
3421 | } |
3512 | } |
3422 | } |
3513 | } |
3423 | |
3514 | |
|
|
3515 | MODULE = Coro::State PACKAGE = Coro::SemaphoreSet |
|
|
3516 | |
|
|
3517 | void |
|
|
3518 | _may_delete (SV *sem, int count, int extra_refs) |
|
|
3519 | PPCODE: |
|
|
3520 | { |
|
|
3521 | AV *av = (AV *)SvRV (sem); |
|
|
3522 | |
|
|
3523 | if (SvREFCNT ((SV *)av) == 1 + extra_refs |
|
|
3524 | && AvFILLp (av) == 0 /* no waiters, just count */ |
|
|
3525 | && SvIV (AvARRAY (av)[0]) == count) |
|
|
3526 | XSRETURN_YES; |
|
|
3527 | |
|
|
3528 | XSRETURN_NO; |
|
|
3529 | } |
|
|
3530 | |
3424 | MODULE = Coro::State PACKAGE = Coro::Signal |
3531 | MODULE = Coro::State PACKAGE = Coro::Signal |
3425 | |
3532 | |
3426 | SV * |
3533 | SV * |
3427 | new (SV *klass) |
3534 | new (SV *klass) |
3428 | CODE: |
3535 | CODE: |