projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8f8ce8
)
Actually set PTHREAD_MUTEX_RECURSIVE attr.
author
José Fonseca
<jose.r.fonseca@gmail.com>
Wed, 18 Jan 2012 13:13:37 +0000
(13:13 +0000)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Wed, 18 Jan 2012 13:13:37 +0000
(13:13 +0000)
common/os_thread.hpp
patch
|
blob
|
history
diff --git
a/common/os_thread.hpp
b/common/os_thread.hpp
index
b17563f
..
fe7faaa
100644
(file)
--- a/
common/os_thread.hpp
+++ b/
common/os_thread.hpp
@@
-58,7
+58,7
@@
namespace os {
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
- pthread_mutex_init(&_native_handle,
NULL
);
+ pthread_mutex_init(&_native_handle,
&attr
);
pthread_mutexattr_destroy(&attr);
#endif
}