silc_thread_queue_pop

SYNOPSIS

    void *silc_thread_queue_pop(SilcThreadQueue queue, int pipe_index,
                                SilcBool block);

DESCRIPTION

Takes data from the queue and returns it. If `block' is TRUE and data is not available this will block until data becomes available. If `block' is FALSE and data is not available this will return NULL. If `block' is TRUE this will never return 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.