silc_thread_queue_pop_list

SYNOPSIS

    SilcDList silc_thread_queue_pop_list(SilcThreadQueue queue,
                                         int pipe_index, SilcBool block);

DESCRIPTION

Takes everything from the queue and returns the data in a list. The caller must free the returned list with silc_dlist_uninit. If the `block' is FALSE this will never block but will return the queue immediately. If `block' is TRUE this will block if the queue is empty.

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