From 8daa0929f08a3080ea64dbd4e997e72f411e6fc9 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sun, 11 Sep 2011 13:46:25 -0700 Subject: 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 --- src/logging.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/logging.cc') 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; } -- cgit v1.2.3-59-g8ed1b