MCPcopy Create free account
hub / github.com/acl-dev/acl / schedule_with

Method schedule_with

lib_fiber/cpp/src/fiber.cpp:353–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353void fiber::schedule_with(fiber_event_t type)
354{
355 int etype;
356
357 switch (type) {
358 case FIBER_EVENT_T_POLL:
359 etype = FIBER_EVENT_POLL;
360 break;
361 case FIBER_EVENT_T_SELECT:
362 etype = FIBER_EVENT_SELECT;
363 break;
364 case FIBER_EVENT_T_WMSG:
365 etype = FIBER_EVENT_WMSG;
366 break;
367 case FIBER_EVENT_T_IO_URING:
368 etype = FIBER_EVENT_IO_URING;
369 break;
370 case FIBER_EVENT_T_KERNEL:
371 default:
372 etype = FIBER_EVENT_KERNEL;
373 break;
374 }
375
376 if (!winapi_hook()) {
377 perror("hook API for windows error");
378 }
379 acl_fiber_schedule_with(etype);
380}
381
382bool fiber::scheduled()
383{

Callers

nothing calls this directly

Calls 2

winapi_hookFunction · 0.85
acl_fiber_schedule_withFunction · 0.85

Tested by

no test coverage detected