8000 注释掉这个读者的延时之后,整个线程不到道哪里,反正就是死锁了,需要深入分析一下,然后可能需添加pthread_mutex_lock(&ql… · home-coder/ring-buffer@80a4b17 · GitHub
[go: up one dir, main page]

Skip to content

Commit 80a4b17

Browse files
committed
注释掉这个读者的延时之后,整个线程不到道哪里,反正就是死锁了,需要深入分析一下,然后可能需添加pthread_mutex_lock(&qlock);方法
1 parent f3abce3 commit 80a4b17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void thread_reader(void *param)
5151
}
5252
pthread_cond_signal(&q_not_full);
5353
//sleep(1);
54-
usleep(100000);
54+
//usleep(100000);
5555
}
5656
}
5757

0 commit comments

Comments
 (0)
0