summaryrefslogtreecommitdiffstats
path: root/lf_ring_buffer.c
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2010-01-05 23:30:16 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2010-01-05 23:30:16 +0100
commit80b8ee53cbf9e69f6831124f469358aa7d4e97d4 (patch)
tree53d18690d84ae050befd3ee86e67c9a66d09a638 /lf_ring_buffer.c
parentac5fc68d6276638542a2369a3bfa8efdf5d06821 (diff)
downloadlock_free-80b8ee53cbf9e69f6831124f469358aa7d4e97d4.zip
lock_free-80b8ee53cbf9e69f6831124f469358aa7d4e97d4.tar.gz
add missing read_delay init in lf_ring_buffer
Diffstat (limited to 'lf_ring_buffer.c')
-rw-r--r--lf_ring_buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lf_ring_buffer.c b/lf_ring_buffer.c
index 7796206..225ef4d 100644
--- a/lf_ring_buffer.c
+++ b/lf_ring_buffer.c
@@ -1,5 +1,5 @@
/*
- * File : lf_ring_buffer.h
+ * File : lf_ring_buffer.c
* Author : Jérémy Zurcher <jeremy@asynk.ch>
* Date : 05/01/010
* License :
@@ -47,6 +47,7 @@ lf_ring_buffer_t* lf_ring_buffer_create( int n_buf ) {
r->read_from = -1;
r->write_to = 0;
r->write_delay=BACKOFF_DELAY_INIT;
+ r->read_delay=BACKOFF_DELAY_INIT;
return r;
}