38 #if !defined(__OCS_CBUF_H__)
39 #define __OCS_CBUF_H__
52 extern void *
ocs_cbuf_get(ocs_cbuf_t *cbuf, int32_t timeout_usec);
53 extern int32_t
ocs_cbuf_put(ocs_cbuf_t *cbuf,
void *elem);
56 #endif // __OCS_CBUF_H__
void ocs_cbuf_free(ocs_cbuf_t *cbuf)
Free a circular buffer.
void * ocs_cbuf_get(ocs_cbuf_t *cbuf, int32_t timeout_usec)
Get pointer to buffer.
int32_t ocs_cbuf_prime(ocs_cbuf_t *cbuf, ocs_array_t *array)
Prime a circular buffer data.
ocs_cbuf_t * ocs_cbuf_alloc(ocs_os_handle_t os, uint32_t entry_count)
Initialize a circular buffer queue.
int32_t ocs_cbuf_put(ocs_cbuf_t *cbuf, void *elem)
write a buffer