|
trafilo 0.1.0
Streaming event-handler framework in C
|
Functions | |
| bounded_queue_t * | bq_create (size_t capacity) |
| Create a bounded queue with a fixed capacity. | |
| void | bq_destroy (bounded_queue_t *bounded_q) |
| Destroy the bounded queue and free resources. | |
| int | bq_push (bounded_queue_t *q, void *item) |
| Add an entry to the queue. Handles not_full, blocks while full. | |
| void * | bq_pop (bounded_queue_t *q) |
| Pop an entry from the queue. Handles not_empty signal, blocks if empty. | |
| void | bq_shutdown (bounded_queue_t *bounded_q) |
| Handle clean shutdown when working queue is done. Responsible for handling all waiting workers on dead signals and setting the shutdown flag. | |
| bounded_queue_t * bq_create | ( | size_t | capacity | ) |
Create a bounded queue with a fixed capacity.
| capacity | The maximum number of elements the queue can hold. |
| void bq_destroy | ( | bounded_queue_t * | q | ) |
Destroy the bounded queue and free resources.
| q | The bounded queue to destroy. |
| void * bq_pop | ( | bounded_queue_t * | q | ) |
Pop an entry from the queue. Handles not_empty signal, blocks if empty.
| q | The bounded queue. |
| int bq_push | ( | bounded_queue_t * | q, |
| void * | item ) |
Add an entry to the queue. Handles not_full, blocks while full.
| q | The bounded queue. |
| item | The item to be added. |
| void bq_shutdown | ( | bounded_queue_t * | q | ) |
Handle clean shutdown when working queue is done. Responsible for handling all waiting workers on dead signals and setting the shutdown flag.
| q | The bounded queue. |