Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __QUEUE_H__
- #define __QUEUE_H__
- typedef struct _queue *queue;
- queue q_create(int size); // Create a new queue
- int q_elements(queue q); // number of elements in a queue
- int q_insert(queue q, void *elem); // insert an element into a queue
- void *q_remove(queue q); // remove an element from the queue
- void q_destroy(queue q); // destroy a queue.
- mtx_t * q_mutex(queue q);
- cnd_t *q_empty(queue q);
- cnd_t *q_full(queue q);
- int q_size(queue q);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement