0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-14 23:28:43 +00:00
bird/sysdep
Jan Maria Matejka 2312622923 Coroutine: use pthread_exit() instead of pthread_cancel()
The coroutine itself may hold some resources when going across pthread
cancellable points. Now it is ensured (by semaphores) that either the
main process or the coroutine is running so the coroutine is always
cancelled inside coro_suspend() where everything is clean but it will
change in future.

Instead, we explicitly mark the coroutine freeze/cancel points by
yielding there -- calling coro_suspend() and checking whether the
master process has requested to stop.

Where pthread_cancel() was, we instead set a flag and resume that
thread to finish its work and exit itself.
2018-09-13 11:10:27 +02:00
..
bsd BSD: Use MSG_DONTROUTE for unicast packets on FreeBSD 2018-07-28 16:54:06 +02:00
cf BSD: Use MSG_DONTROUTE for unicast packets on FreeBSD 2018-07-28 16:54:06 +02:00
linux Nest: Neighbor cache cleanups 2018-06-27 16:57:07 +02:00
unix Coroutine: use pthread_exit() instead of pthread_cancel() 2018-09-13 11:10:27 +02:00
config.h NEWS and version update 2018-03-21 16:33:08 +01:00
progdoc Doc: renamed progdoc files Doc -> progdoc to fix collision with doc/ folder on case-insensitive filesystems 2018-06-26 17:09:12 +02:00
sysdep.sgml Spelling fixes to progdoc. 2000-06-07 12:29:08 +00:00