summaryrefslogtreecommitdiff
path: root/coro.c
diff options
context:
space:
mode:
Diffstat (limited to 'coro.c')
-rw-r--r--coro.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/coro.c b/coro.c
index 5c410e8..25dfef8 100644
--- a/coro.c
+++ b/coro.c
@@ -343,6 +343,9 @@ coro_transfer (coro_context *prev, coro_context *next)
{
pthread_cond_signal (&next->cv);
pthread_cond_wait (&prev->cv, &coro_mutex);
+#if __FreeBSD__ /* freebsd is of course broken and needs manual testcancel calls... yay... */
+ pthread_testcancel ();
+#endif
}
void