Logo Search packages:      
Sourcecode: pulseaudio version File versions

int pa_msleep ( unsigned long  t  ) 

Wait t milliseconds

Definition at line 256 of file util.c.

                               {
#ifdef OS_IS_WIN32
    Sleep(t);
    return 0;
#elif defined(HAVE_NANOSLEEP)
    struct timespec ts;

    ts.tv_sec = (time_t) (t/1000UL);
    ts.tv_nsec = (long) ((t % 1000UL) * 1000000UL);

    return nanosleep(&ts, NULL);
#else
#error "Platform lacks a sleep function."
#endif
}


Generated by  Doxygen 1.6.0   Back to index