| 887 | |
| 888 | //! starts the actual fiber context execution (needed here for CC purposes) |
| 889 | extern "C" void run_exec(floor_fiber_context& main_ctx, floor_fiber_context& first_item) FLOOR_HOST_COMPUTE_CC_MAYBE_NOINLINE { |
| 890 | static thread_local volatile bool done; |
| 891 | done = false; |
| 892 | main_ctx.get_context(); |
| 893 | if (!done) { |
| 894 | done = true; |
| 895 | |
| 896 | // start first fiber |
| 897 | first_item.set_context(); |
| 898 | } |
| 899 | } |
| 900 | |
| 901 | void host_kernel::execute_host(const kernel_func_wrapper& func, |
| 902 | const uint32_t& cpu_count, |
no test coverage detected