|
Author: eliot
Date: 2011-03-18 21:43:06 -0700 (Fri, 18 Mar 2011)
New Revision: 2371
Modified:
branches/Cog/platforms/unix/vm/sqPlatformSpecific.h
branches/Cog/platforms/win32/vm/sqPlatformSpecific.h
Log:
Add missing ioMilliSleep defs for unix & win32
Modified: branches/Cog/platforms/unix/vm/sqPlatformSpecific.h
===================================================================
--- branches/Cog/platforms/unix/vm/sqPlatformSpecific.h 2011-03-18 23:10:49 UTC (rev 2370)
+++ branches/Cog/platforms/unix/vm/sqPlatformSpecific.h 2011-03-19 04:43:06 UTC (rev 2371)
@@ -85,6 +85,7 @@
# define ioSetThreadLocalThreadIndex(v) (pthread_setspecific(tltiIndex,(void*)(v)))
# define ioOSThreadIsAlive(thread) (pthread_kill(thread,0) == 0)
# define ioTransferTimeslice() sched_yield()
+# define ioMilliSleep(ms) usleep((ms) * 1000)
# endif /* COGMTVM */
#endif /* STACKVM */
Modified: branches/Cog/platforms/win32/vm/sqPlatformSpecific.h
===================================================================
--- branches/Cog/platforms/win32/vm/sqPlatformSpecific.h 2011-03-18 23:10:49 UTC (rev 2370)
+++ branches/Cog/platforms/win32/vm/sqPlatformSpecific.h 2011-03-19 04:43:06 UTC (rev 2371)
@@ -100,6 +100,7 @@
# define ioGetThreadLocalThreadIndex() ((long)TlsGetValue(tltiIndex))
# define ioSetThreadLocalThreadIndex(v) (TlsSetValue(tltiIndex,(void*)(v)))
# define ioTransferTimeslice() Sleep(0)
+# define ioMilliSleep(ms) Sleep(ms)
# endif /* COGMTVM */
#endif /* STACKVM */
|