24 #ifndef OPAL_RING_BUFFER_H
25 #define OPAL_RING_BUFFER_H
27 #include "opal_config.h"
29 #include "opal/threads/threads.h"
opal_object_t super
base class
Definition: opal_ring_buffer.h:40
OPAL output stream facility.
Definition: condition.h:49
OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_ring_buffer_t)
Class declaration.
OPAL_DECLSPEC void * opal_ring_buffer_pop(opal_ring_buffer_t *ring)
Pop an item off of the ring.
Definition: opal_ring_buffer.c:114
dynamic pointer ring
Definition: opal_ring_buffer.h:38
Definition: mutex_unix.h:53
OPAL_DECLSPEC void * opal_ring_buffer_push(opal_ring_buffer_t *ring, void *ptr)
Push an item onto the ring buffer.
Definition: opal_ring_buffer.c:88
int size
size of list, i.e.
Definition: opal_ring_buffer.h:49
opal_mutex_t lock
synchronization object
Definition: opal_ring_buffer.h:42
char ** addr
pointer to ring
Definition: opal_ring_buffer.h:51
Base object.
Definition: opal_object.h:182
OPAL_DECLSPEC int opal_ring_buffer_init(opal_ring_buffer_t *ring, int size)
Initialize the ring buffer, defining its size.
Definition: opal_ring_buffer.c:71
A simple C-language object-oriented system with single inheritance and ownership-based memory managem...