summaryrefslogtreecommitdiff
path: root/coro.c
diff options
context:
space:
mode:
authorroot <root>2008-11-16 00:55:41 +0000
committerroot <root>2008-11-16 00:55:41 +0000
commit3c85b2a89c2e609f35fe579ae6058f093a38ce5a (patch)
tree1544445504d70e40459632284eefe23ad37dd93e /coro.c
parentd5cb59151afca5d4202e69a4d27df78b35f259b4 (diff)
*** empty log message ***
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