diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2010-01-05 23:30:16 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2010-01-05 23:30:16 +0100 |
commit | 80b8ee53cbf9e69f6831124f469358aa7d4e97d4 (patch) | |
tree | 53d18690d84ae050befd3ee86e67c9a66d09a638 /lf_ring_buffer.h | |
parent | ac5fc68d6276638542a2369a3bfa8efdf5d06821 (diff) | |
download | lock_free-80b8ee53cbf9e69f6831124f469358aa7d4e97d4.zip lock_free-80b8ee53cbf9e69f6831124f469358aa7d4e97d4.tar.gz |
add missing read_delay init in lf_ring_buffer
Diffstat (limited to 'lf_ring_buffer.h')
-rw-r--r-- | lf_ring_buffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lf_ring_buffer.h b/lf_ring_buffer.h index 7c237ab..e9a5727 100644 --- a/lf_ring_buffer.h +++ b/lf_ring_buffer.h @@ -60,10 +60,10 @@ typedef struct ring_buffer { #define MARK_AS_FILLED( idx ) { r->buffer[(idx)].status=1; } #define MARK_AS_READ( idx ) { r->buffer[(idx)].status=0; } -/* initialize an empty lf_ring_buffer struct */ +/* return an initialized lf_ring_buffer_t struct */ lf_ring_buffer_t* lf_ring_buffer_create( int n_buf ); -/* destroy an lf_ring_buffer strcture */ +/* destroy an lf_ring_buffer_t struct */ void lf_ring_buffer_destroy( lf_ring_buffer_t *r ); /* write data into the ring buffer |