ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libcoro/coro.c
(Generate patch)

Comparing libcoro/coro.c (file contents):
Revision 1.42 by root, Mon Nov 10 04:37:23 2008 UTC vs.
Revision 1.43 by root, Sun Nov 16 00:55:41 2008 UTC

341void 341void
342coro_transfer (coro_context *prev, coro_context *next) 342coro_transfer (coro_context *prev, coro_context *next)
343{ 343{
344 pthread_cond_signal (&next->cv); 344 pthread_cond_signal (&next->cv);
345 pthread_cond_wait (&prev->cv, &coro_mutex); 345 pthread_cond_wait (&prev->cv, &coro_mutex);
346#if __FreeBSD__ /* freebsd is of course broken and needs manual testcancel calls... yay... */
347 pthread_testcancel ();
348#endif
346} 349}
347 350
348void 351void
349coro_create (coro_context *ctx, coro_func coro, void *arg, void *sptr, long ssize) 352coro_create (coro_context *ctx, coro_func coro, void *arg, void *sptr, long ssize)
350{ 353{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines