qthread_queue_release_all - Man Page

activate the tasks in the queue for scheduling and execution

Synopsis

#include <qthread.h>

int
qthread_queue_release_one (qthread_queue_t q);

int
qthread_queue_release_all (qthread_queue_t q);

Description

These two functions are for emptying the specified queue (q) and handing the tasks in the queue to the scheduler for execution. The qthread_queue_release_one() function removes only a single task, in a fifo manner, and schedules it, while the qthread_queue_release_all() function removes all of the tasks and schedules them.

Return Values

Both functions return QTHREAD_SUCCESS on success, and an error otherwise.

See Also

qthread_queue_create(3), qthread_queue_destroy(3), qthread_queue_join(3), qthread_queue_length(3)

Referenced By

qthread_queue_create(3), qthread_queue_join(3), qthread_queue_length(3).

AUGUST 2013 libqthread