diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2010-01-06 23:12:15 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2010-01-06 23:12:15 +0100 |
commit | ce1dcb6ed32396910e3400e3a816b76d22d5a0de (patch) | |
tree | 3823ed0990af06ed09e598d7184fac4a5c3a5139 /lf_ring_buffer.h | |
parent | 141b9946e039e25cb9e79c581639caa00f442ab5 (diff) | |
download | lock_free-ce1dcb6ed32396910e3400e3a816b76d22d5a0de.zip lock_free-ce1dcb6ed32396910e3400e3a816b76d22d5a0de.tar.gz |
ring buffer is better ... one more crash
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 a7c7786..790cba9 100644 --- a/lf_ring_buffer.h +++ b/lf_ring_buffer.h @@ -38,8 +38,8 @@ extern "C" { #define BACKOFF_DELAY_INC 3000 #define BACKOFF_DELAY_MAX 90000 -#define NO_BLOCK 1 /* if buffer is full, leave instead of try again and again */ -#define IS_NOT_BLOCKING( flags ) ( (flags)&NO_BLOCK ) +#define LFRB_NO_BLOCK 1 /* if buffer is full, leave instead of try again and again */ +#define IS_NOT_BLOCKING( flags ) ( (flags)&LFRB_NO_BLOCK ) typedef struct ring_buffer { LFRB_BUFFER_TYPE *buffer; /* buffer data */ |