summaryrefslogtreecommitdiffstats
path: root/vm/Thread.h
diff options
context:
space:
mode:
authorCarl Shapiro <cshapiro@google.com>2010-01-05 10:18:30 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-01-05 10:18:30 -0800
commit81315cc4a0209073e0ae4946a6400b2cb571e616 (patch)
tree1f2d806dddccf1eb7582d5301f3fdc79753cac0d /vm/Thread.h
parente0189851b1e921199070182047dd35fa5d2d9d28 (diff)
parentb453919fee9bf10ccd576d389d8b3584061bba8b (diff)
downloadandroid_dalvik-81315cc4a0209073e0ae4946a6400b2cb571e616.tar.gz
android_dalvik-81315cc4a0209073e0ae4946a6400b2cb571e616.tar.bz2
android_dalvik-81315cc4a0209073e0ae4946a6400b2cb571e616.zip
Merge "Remove references to the old wait implementation in various comments. Also, move the waitMutex above the values it guards to improve the readability of the Thread structure."
Diffstat (limited to 'vm/Thread.h')
-rw-r--r--vm/Thread.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm/Thread.h b/vm/Thread.h
index 60b24968f..a30c77c68 100644
--- a/vm/Thread.h
+++ b/vm/Thread.h
@@ -170,6 +170,9 @@ typedef struct Thread {
/* hack to make JNI_OnLoad work right */
Object* classLoaderOverride;
+ /* mutex to guard the interrupted and the waitMonitor members */
+ pthread_mutex_t waitMutex;
+
/* pointer to the monitor lock we're currently waiting on */
/* guarded by waitMutex */
/* TODO: consider changing this to Object* for better JDWP interaction */
@@ -185,9 +188,6 @@ typedef struct Thread {
/* object to sleep on while we are waiting for a monitor */
pthread_cond_t waitCond;
- /* mutex to guard the interrupted and the waitMonitor members */
- pthread_mutex_t waitMutex;
-
/*
* Set to true when the thread is in the process of throwing an
* OutOfMemoryError.