projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: test_mutex.c uninitialized mutex
[userspace-rcu.git]
/
tests
/
benchmark
/
test_mutex.c
diff --git
a/tests/benchmark/test_mutex.c
b/tests/benchmark/test_mutex.c
index 255acfcabae07de9042c5a819af4abfb16d6c72d..919654daa063d6589ec3e51ed99a8a8bc2c30a97 100644
(file)
--- a/
tests/benchmark/test_mutex.c
+++ b/
tests/benchmark/test_mutex.c
@@
-52,7
+52,7
@@
struct test_array {
int a;
};
int a;
};
-static pthread_mutex_t lock;
+static pthread_mutex_t lock
= PTHREAD_MUTEX_INITIALIZER
;
static volatile int test_go, test_stop;
static volatile int test_go, test_stop;
This page took
0.023265 seconds
and
4
git commands to generate.