Logo Search packages:      
Sourcecode: pulseaudio version File versions

void pa_mainloop_wakeup ( pa_mainloop m  ) 

Interrupt a running poll (for threaded systems)

Definition at line 791 of file mainloop.c.

                                        {
    char c = 'W';
    pa_assert(m);

    if (m->wakeup_pipe[1] >= 0 && m->state == STATE_POLLING) {
        pa_write(m->wakeup_pipe[1], &c, sizeof(c), &m->wakeup_pipe_type);
        m->wakeup_requested++;
    }
}


Generated by  Doxygen 1.6.0   Back to index