Changeset 4896:0cd0dc3bc104 in roaraudio for libroarpulse


Ignore:
Timestamp:
04/29/11 15:28:16 (8 years ago)
Author:
phi
Branch:
default
Message:

removed useage of usleep() in flavor to nanosleep() if supported.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/util.c

    r4708 r4896  
    9696/** Wait t milliseconds */ 
    9797int pa_msleep(unsigned long t) { 
    98 #ifdef ROAR_TARGET_WIN32 
    99  Sleep(t); 
    100 #else 
    101  usleep(1000*t); 
    102 #endif 
     98 roar_usleep((uint_least32_t)1000*(uint_least32_t)t); 
    10399 return 0; 
    104100} 
Note: See TracChangeset for help on using the changeset viewer.