Update the sched-related functions to match the changes to the Unikraft
core. Update the thread creation functions and change the `thread_wait`
function to a loop that waits for the thread to end.
Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #7
on_router((*path + strlen(PATH_ROOT)), val);
}
#else
- router = uk_thread_create("click-router", router_thread, 0);
- uk_thread_wait(router);
+ router = uk_sched_thread_create(uk_sched_current(), router_thread, 0, "click-router");
+ while (!uk_thread_is_exited(router))
+ uk_sched_yield();
#endif
LOG("Shutting down...");