… | |
… | |
3938 | # we must not ever block the main coroutine |
3938 | # we must not ever block the main coroutine |
3939 | $Coro::idle = sub { |
3939 | $Coro::idle = sub { |
3940 | Carp::cluck "FATAL: Coro::idle was called, major BUG, use cf::sync_job!\n";#d# |
3940 | Carp::cluck "FATAL: Coro::idle was called, major BUG, use cf::sync_job!\n";#d# |
3941 | (async { |
3941 | (async { |
3942 | $Coro::current->{desc} = "IDLE BUG HANDLER"; |
3942 | $Coro::current->{desc} = "IDLE BUG HANDLER"; |
3943 | EV::run EV::RUN_ONESHOT; |
3943 | EV::run EV::RUN_ONCE; |
3944 | })->prio (Coro::PRIO_MAX); |
3944 | })->prio (Coro::PRIO_MAX); |
3945 | }; |
3945 | }; |
3946 | |
3946 | |
3947 | evthread_start IO::AIO::poll_fileno; |
3947 | evthread_start IO::AIO::poll_fileno; |
3948 | |
3948 | |