1
0
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:
Maria Matejka
2021-12-01 21:52:55 +00:00
parent 387b279f60
commit b2bac7ae91
3 changed files with 66 additions and 31 deletions

View File

@@ -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);
}