|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Opaque structure describing one work queue. More...
#include <workqueue.h>
Related Symbols | |
(Note that these are not member symbols.) | |
| workqueue_t * | workqueue_create (void) |
| Create a new work queue. | |
| void | workqueue_destroy (workqueue_t *wq) |
| Destroy a work queue. | |
| void | workqueue_kill (workqueue_t *wq) |
| Stop a work queue from running. | |
| void | workqueue_enqueue (workqueue_t *wq, workqueue_job_t *job) |
| Enqueue a job to a work queue. | |
| void | workqueue_cancel (workqueue_t *wq, workqueue_job_t *job) |
| Cancel a job and remove it from the work queue. | |
| kthread_t * | workqueue_get_thread (workqueue_t *wq) |
| Get a handle to the underlying thread. | |
Opaque structure describing one work queue.
|
related |
Cancel a job and remove it from the work queue.
This function can be used when a job should be removed from a work queue before the job is set to be executed (note that jobs are automatically removed from the work queue right before their execution).
| wq | A pointer to the work queue |
| job | A pointer to the job to cancel |
|
related |
Create a new work queue.
This function will create a new work queue.
|
related |
Destroy a work queue.
This function will destroy a work queue and free up any allocated memory.
| wq | A pointer to the work queue |
|
related |
Enqueue a job to a work queue.
This function will enqueue a job to the given work queue. The job's struct must have been initialized properly.
| wq | A pointer to the work queue |
| job | A pointer to the job to enqueue |
|
related |
Get a handle to the underlying thread.
| wq | The workqueue whose thread should be returned. |
|
related |
Stop a work queue from running.
This function can optionally be called before destroying a work queue. The work queue then stops processing previously or newly enqueued jobs.
| wq | A pointer to the work queue |