Changeset 5020:c5d5637d2d25 in roaraudio
- Timestamp:
- 05/26/11 14:06:41 (13 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r5016 r5020 1550 1550 test_func_defmake ROAR_HAVE_GETTIMEOFDAY gettimeofday 'struct timeval tv; gettimeofday(&tv, NULL)' -- sys/time.h time.h 1551 1551 test_func_defmake ROAR_HAVE_USLEEP usleep 'usleep(0)' -- sys/types.h unistd.h 1552 test_func_defmake ROAR_HAVE_SLEEP sleep 'sleep(0)' -- unistd.h 1552 1553 test_func_defmake ROAR_HAVE_NANOSLEEP nanosleep 'nanosleep((void*)0, (void*)0)' -- time.h 1553 1554 test_func_defmake ROAR_HAVE_ALARM alarm 'alarm(0)' -- sys/types.h unistd.h -
libroar/libroar.c
r5017 r5020 138 138 #ifdef ROAR_TARGET_WIN32 139 139 Sleep(1000L*(long)t); 140 #el se140 #elif defined(ROAR_HAVE_SLEEP) 141 141 while (t) 142 142 t = sleep(t); 143 #else 144 while (t) { 145 if ( roar_usleep(500000) == -1 ) 146 return -1; 147 if ( roar_usleep(500000) == -1 ) 148 return -1; 149 t--; 150 } 143 151 #endif 144 152
Note: See TracChangeset
for help on using the changeset viewer.