Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12943/src
Modified Files: Tag: devel_0_39 s_inter.c Log Message: don't microsleep shorter than 1ms on windoze!
Index: s_inter.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_inter.c,v retrieving revision 1.5.4.10.2.12 retrieving revision 1.5.4.10.2.13 diff -C2 -d -r1.5.4.10.2.12 -r1.5.4.10.2.13 *** s_inter.c 30 Nov 2005 13:36:58 -0000 1.5.4.10.2.12 --- s_inter.c 19 Apr 2006 23:53:32 -0000 1.5.4.10.2.13 *************** *** 195,200 **** */
! /* if (!sys_callbackscheduler && microsec < 1000) */ ! /* microsec = 1000; */ #ifndef MSW struct timeval timeout; --- 195,203 ---- */
! if (!sys_callbackscheduler) ! if (500 < microsec && microsec < 1000) ! microsec = 1000; ! else ! return; #ifndef MSW struct timeval timeout; *************** *** 204,208 ****
#else ! Sleep(microsec/1000); #endif
--- 207,211 ----
#else ! Sleep(microsec/1000); #endif