Logo Search packages:      
Sourcecode: pulseaudio version File versions  Download package

int pa_msleep ( unsigned long  t  ) 

Wait t milliseconds

Definition at line 251 of file util.c.

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

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

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


Generated by  Doxygen 1.6.0   Back to index