diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-02-03 07:32:31 +0100 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-02-03 07:32:31 +0100 |
commit | 5fceada4141986b8b23f25c78dc17ae3214e9bed (patch) | |
tree | a232bb07ac5b718214f76327a1cb9798644702c2 | |
parent | 0c2fabc6c5cc1631fc2fb8dc7ee46333cc9e4ddc (diff) | |
download | librb-5fceada4141986b8b23f25c78dc17ae3214e9bed.tar.gz librb-5fceada4141986b8b23f25c78dc17ae3214e9bed.tar.bz2 librb-5fceada4141986b8b23f25c78dc17ae3214e9bed.zip |
little reformat
-rw-r--r-- | rb/rb.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -604,12 +604,16 @@ long rb_sendt ========================================================================== */ -static void *rb_stop_thread(void *arg) +static void *rb_stop_thread +( + void *arg /* disguised rb object */ +) { struct rb *rb; /* ring buffer object */ int stopped; /* copy of rb->stopped_all */ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ + rb = arg; stopped = 0; @@ -673,6 +677,7 @@ struct rb *rb_new struct rb *rb; /* pointer to newly created buffer */ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ + #if ENABLE_THREADS == 0 /* * multithreaded operations are not allowed when library is compiled |