silc_thread_queue_timed_pop

SYNOPSIS

    void *silc_thread_queue_timed_pop(SilcThreadQueue queue,
                                      int pipe_index, int timeout_msec);

DESCRIPTION

Takes data from the thread queue or waits at most `timeout_msec' milliseconds for the data to arrive. If data is not available when the timeout occurrs this returns NULL.

The `pipe_index' specifies the pipe from which to pop the data. First pipe has index 0, second has index 1, and so on. If there is only one pipe the index is always 0.