commit | 81d425b0b232962441616f8b14f73620bffef5e5 | [log] [tgz] |
---|---|---|
author | Ian Rogers <irogers@google.com> | Thu Sep 27 16:03:43 2012 -0700 |
committer | Ian Rogers <irogers@google.com> | Thu Sep 27 17:19:25 2012 -0700 |
tree | cd1e46656269acf20e78817d675e56d9b9133e6c | |
parent | bfaf917edbb1de8d158c3615e0da8ac3143d10c8 [diff] [blame] |
Pass self to lock methods. This avoids frequent recomputation of Thread::Current/pthread_getspecific. Also add a futex based reader/writer mutex that is disabled. Change-Id: I118fdb99ef1d1c4bfda6446ba3a0d8b6ab31eaee
diff --git a/src/logging.cc b/src/logging.cc index a0c07cf..48785c5 100644 --- a/src/logging.cc +++ b/src/logging.cc
@@ -16,6 +16,7 @@ #include "logging.h" +#include "mutex.h" #include "runtime.h" #include "thread.h" #include "utils.h"