diff options
author | Carl Shapiro <cshapiro@google.com> | 2010-01-04 16:50:00 -0800 |
---|---|---|
committer | Carl Shapiro <cshapiro@google.com> | 2010-01-04 16:50:00 -0800 |
commit | b453919fee9bf10ccd576d389d8b3584061bba8b (patch) | |
tree | 0aa6b7476bd85e6c32fad94bed51f35f2265e69e /vm/Thread.h | |
parent | 3a68495f5eeb2d524276798d7499b1508e8f2e31 (diff) | |
download | android_dalvik-b453919fee9bf10ccd576d389d8b3584061bba8b.tar.gz android_dalvik-b453919fee9bf10ccd576d389d8b3584061bba8b.tar.bz2 android_dalvik-b453919fee9bf10ccd576d389d8b3584061bba8b.zip |
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.h | 6 |
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. |