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
    return 0;
#elif defined(HAVE_NANOSLEEP)
    struct timespec ts;

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

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

Generated by  Doxygen 1.6.0   Back to index