diff options
| author | 2011-09-11 13:46:25 -0700 | |
|---|---|---|
| committer | 2011-09-11 14:01:57 -0700 | |
| commit | 8daa0929f08a3080ea64dbd4e997e72f411e6fc9 (patch) | |
| tree | cecee23131d5e0357c17c44bcccc7ddcfb31b925 /src/logging.cc | |
| parent | 4b620ffb1b4d0c96a94bb3afe314f35d53990ec6 (diff) | |
More threads work.
Adds stubs (and sometimes implementations) for dalvik.system.VMStack and
java.lang.Thread native methods. There was a bug in the dalvik
thread priority setting code, where the current thread and the passed-in
thread were confused.
I've also pulled Mutex and ThreadList out into their own files, and
moved some functionality around (with the aim of having more stuff
private, especially locks).
Change-Id: Ieb0f22669cac3df44ca34f7868f8e7d4dfa09ab6
Diffstat (limited to 'src/logging.cc')
| -rw-r--r-- | src/logging.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logging.cc b/src/logging.cc index 03788c3b3e..5e9ae3ab23 100644 --- a/src/logging.cc +++ b/src/logging.cc @@ -22,8 +22,8 @@ namespace { -art::Mutex* GetLoggingLock() { - static art::Mutex* lock = art::Mutex::Create("LogMessage lock"); +art::Mutex& GetLoggingLock() { + static art::Mutex lock("LogMessage lock"); return lock; } |