summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2011-01-30 15:17:33 -0800
committerAndroid Code Review <code-review@android.com>2011-01-30 15:17:33 -0800
commit65aef1517b070e695e00e9603bf79c166dc4913f (patch)
treefc298c640dd3543014caba479459057a58659fb7
parente59e0309a1301908eae0075db02413fda90848d5 (diff)
parent2d9299b39d4802a68bfd083a06de347bf1c0721d (diff)
downloadbase-65aef1517b070e695e00e9603bf79c166dc4913f.tar.gz
Merge "fix failing thread object run" into gingerbread
-rw-r--r--libs/utils/Threads.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/utils/Threads.cpp b/libs/utils/Threads.cpp
index f6c55e4d89de..0b360f45bde6 100644
--- a/libs/utils/Threads.cpp
+++ b/libs/utils/Threads.cpp
@@ -775,6 +775,7 @@ int Thread::_threadLoop(void* user)
self->mLock.lock();
self->mRunning = false;
self->mThreadExitedCondition.broadcast();
+ self->mThread = thread_id_t(-1); // thread id could be reused
self->mLock.unlock();
break;
}