diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2010-01-10 13:33:00 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2010-01-10 13:33:00 +0100 |
commit | ea369cd15ee0a54a503852111cbd58fab19d9c2b (patch) | |
tree | 92fd2cc0401b4fd058e28df80dbfde86661993bc /lf_ring_buffer.h | |
parent | 3584c739ff527592fb10d5f9dfe7000edbd9fdf3 (diff) | |
download | lock_free-ea369cd15ee0a54a503852111cbd58fab19d9c2b.zip lock_free-ea369cd15ee0a54a503852111cbd58fab19d9c2b.tar.gz |
add lf_ring_buffer_empty, is it in tests, update _LOG_ macros
Diffstat (limited to 'lf_ring_buffer.h')
-rw-r--r-- | lf_ring_buffer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lf_ring_buffer.h b/lf_ring_buffer.h index 64bed4c..14a1aec 100644 --- a/lf_ring_buffer.h +++ b/lf_ring_buffer.h @@ -51,6 +51,9 @@ lf_ring_buffer_t* lf_ring_buffer_create( size_t n_buf ); /* destroy an lf_ring_buffer_t struct */ void lf_ring_buffer_destroy( lf_ring_buffer_t *r ); +/* return 1 if is empty */ +int lf_ring_buffer_empty( lf_ring_buffer_t *r ); + /* write data into the ring buffer * return 0 on success * return -1 if IS_NOT_BLOCKING and buffer is full |