pthread_queue.h File Reference
Go to the source code of this file.
Data Structures | |
struct | pthread_queue_s |
Macros | |
#define | PTHREAD_QUEUE_ERROR CSP_QUEUE_ERROR |
#define | PTHREAD_QUEUE_EMPTY CSP_QUEUE_ERROR |
#define | PTHREAD_QUEUE_FULL CSP_QUEUE_ERROR |
#define | PTHREAD_QUEUE_OK CSP_QUEUE_OK |
Typedefs | |
typedef struct pthread_queue_s | pthread_queue_t |
Functions | |
pthread_queue_t * | pthread_queue_create (int length, size_t item_size) |
void | pthread_queue_delete (pthread_queue_t *q) |
int | pthread_queue_enqueue (pthread_queue_t *queue, void *value, uint32_t timeout) |
int | pthread_queue_dequeue (pthread_queue_t *queue, void *buf, uint32_t timeout) |
int | pthread_queue_items (pthread_queue_t *queue) |
Macro Definition Documentation
#define PTHREAD_QUEUE_EMPTY CSP_QUEUE_ERROR |
#define PTHREAD_QUEUE_ERROR CSP_QUEUE_ERROR |
#define PTHREAD_QUEUE_FULL CSP_QUEUE_ERROR |
#define PTHREAD_QUEUE_OK CSP_QUEUE_OK |
Typedef Documentation
typedef struct pthread_queue_s pthread_queue_t |
Function Documentation
pthread_queue_t* pthread_queue_create | ( | int | length, |
size_t | item_size | ||
) |
void pthread_queue_delete | ( | pthread_queue_t * | q | ) |
int pthread_queue_dequeue | ( | pthread_queue_t * | queue, |
void * | buf, | ||
uint32_t | timeout | ||
) |
int pthread_queue_enqueue | ( | pthread_queue_t * | queue, |
void * | value, | ||
uint32_t | timeout | ||
) |
int pthread_queue_items | ( | pthread_queue_t * | queue | ) |