aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rb/rb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/rb/rb.c b/rb/rb.c
index b8ae3b8..0808d91 100644
--- a/rb/rb.c
+++ b/rb/rb.c
@@ -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