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/utils.cc | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/utils.cc') diff --git a/src/utils.cc b/src/utils.cc index fed8a5eea6..d146166e8e 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -252,15 +252,6 @@ void SetThreadName(const char *threadName) { #endif } -pid_t GetOwner(pthread_mutex_t* mutex) { -#ifdef __BIONIC__ - return static_cast(((mutex)->value >> 16) & 0xffff); -#else - UNIMPLEMENTED(FATAL); - return 0; -#endif -} - } // namespace art // Neither bionic nor glibc exposes gettid(2). -- cgit v1.2.3-59-g8ed1b