pthread_queue.h File Reference
#include <stdlib.h>
#include <stdint.h>
#include <sys/time.h>
#include <csp/arch/csp_queue.h>

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_tpthread_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

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)