diff options
-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 |