26 #ifndef _PTHREAD_QUEUE_H_ 27 #define _PTHREAD_QUEUE_H_ 39 #define PTHREAD_QUEUE_ERROR CSP_QUEUE_ERROR 40 #define PTHREAD_QUEUE_EMPTY CSP_QUEUE_ERROR 41 #define PTHREAD_QUEUE_FULL CSP_QUEUE_ERROR 42 #define PTHREAD_QUEUE_OK CSP_QUEUE_OK 66 #endif // _PTHREAD_QUEUE_H_ Definition: pthread_queue.h:44
pthread_queue_t * pthread_queue_create(int length, size_t item_size)
struct pthread_queue_s pthread_queue_t
int size
Definition: pthread_queue.h:46
pthread_cond_t cond_empty
Definition: pthread_queue.h:53
int pthread_queue_dequeue(pthread_queue_t *queue, void *buf, uint32_t timeout)
pthread_cond_t cond_full
Definition: pthread_queue.h:52
int pthread_queue_enqueue(pthread_queue_t *queue, void *value, uint32_t timeout)
pthread_mutex_t mutex
Definition: pthread_queue.h:51
int in
Definition: pthread_queue.h:49
int items
Definition: pthread_queue.h:48
void pthread_queue_delete(pthread_queue_t *q)
int item_size
Definition: pthread_queue.h:47
int pthread_queue_items(pthread_queue_t *queue)
int out
Definition: pthread_queue.h:50
void * buffer
Definition: pthread_queue.h:45