commit | 715112b4551b6ead2643b5e4e9bd796331417115 | [log] [tgz] |
---|---|---|
author | Brian Carlstrom <bdc@google.com> | Sat Jan 28 23:32:05 2012 -0800 |
committer | Brian Carlstrom <bdc@google.com> | Sat Jan 28 23:32:46 2012 -0800 |
tree | 05a1eff1cf30849b2144d915fb5715e1af775392 | |
parent | 3d9914cec8a46bc884e4f78381c86c7d0cbc20b1 [diff] |
Fix Mutex::ClearOwner for bionic Change-Id: I9b8a3e7527f0be3bcdc593a0b2db04b077e48121
diff --git a/src/mutex.cc b/src/mutex.cc index 4760b2f..8ff1207 100644 --- a/src/mutex.cc +++ b/src/mutex.cc
@@ -90,7 +90,8 @@ void Mutex::ClearOwner() { #if defined(__BIONIC__) - mutex_.value = 0; +#define __PTHREAD_RECURSIVE_MUTEX_INIT_VALUE 0x4000 + mutex_.value = __PTHREAD_RECURSIVE_MUTEX_INIT_VALUE; #elif defined(__GLIBC__) struct __attribute__((__may_alias__)) glibc_pthread_t { int lock;