mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Faster shutdown and cleanups by freeing route attributes strictly from main loop
This commit is contained in:
@@ -201,5 +201,6 @@ struct coroutine *coro_run(pool *p, void (*entry)(void *), void *data)
|
||||
void
|
||||
coro_yield(void)
|
||||
{
|
||||
usleep(100);
|
||||
const struct timespec req = { .tv_nsec = 100 };
|
||||
nanosleep(&req, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user