diff compat.c @ 697:830e1f3672b9

Added draining mechanism for threads that don't have run loops.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 10 Mar 2011 23:28:10 +0000
parents 3e2ada9ee0ac
children 59c4fac42fb5
line wrap: on
line diff
--- a/compat.c	Thu Mar 10 19:49:57 2011 +0000
+++ b/compat.c	Thu Mar 10 23:28:10 2011 +0000
@@ -1,6 +1,7 @@
 /* $Id$ */
 
 #include "compat.h"
+#include "dw.h"
 #if defined(__OS2__) || defined(__WIN32__)
 #include <share.h>
 #endif
@@ -35,6 +36,9 @@
 	nanosleep(&req, NULL);
 #else
 	usleep(period * 1000);
+#ifdef __MAC__
+    _dw_pool_drain();
+#endif
 #endif
 }
 #endif