summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/stpd/librelay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/stpd/librelay.c b/runtime/stpd/librelay.c
index d7b104d0..b32d8436 100644
--- a/runtime/stpd/librelay.c
+++ b/runtime/stpd/librelay.c
@@ -394,6 +394,7 @@ static void *reader_thread(void *data)
send_request(STP_BUF_INFO, &status[cpu].info,
sizeof(struct buf_info));
+ pthread_mutex_lock(&status[cpu].ready_mutex);
if (status[cpu].info.produced == status[cpu].info.consumed)
pthread_cond_wait(&status[cpu].ready_cond,
&status[cpu].ready_mutex);