]> sourceware.org Git - systemtap.git/commitdiff
fix unmatched mutex unlock
authortrz <trz>
Thu, 14 Jul 2005 20:58:22 +0000 (20:58 +0000)
committertrz <trz>
Thu, 14 Jul 2005 20:58:22 +0000 (20:58 +0000)
runtime/stpd/librelay.c

index d7b104d0b4da056886b46ab0ad54a62f17b6f3c9..b32d843661581e5b7af05cde72b86c56f36a833b 100644 (file)
@@ -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);
This page took 0.026674 seconds and 5 git commands to generate.