initialize mutex and cv.
This commit is contained in:
parent
a8a343d2e6
commit
56073c9eac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164928
@ -31,8 +31,8 @@
|
||||
|
||||
#define NLOOPS 10
|
||||
|
||||
pthread_mutex_t m;
|
||||
pthread_cond_t cv;
|
||||
pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
|
||||
pthread_cond_t cv = PTHREAD_COND_INITIALIZER;
|
||||
|
||||
int wake;
|
||||
int stop;
|
||||
|
Loading…
Reference in New Issue
Block a user