diff options
| author | 2013-03-11 21:39:27 +0000 | |
|---|---|---|
| committer | 2013-03-11 21:39:27 +0000 | |
| commit | c75412dcdd617423a033e4a647f43b35af1fc0c4 (patch) | |
| tree | d301a0b09a50e78076ab99184703a469a9be1c92 /libs/utils/Threads.cpp | |
| parent | c1509400dcf79d65b2624e6fc6e7f667ff9edb29 (diff) | |
| parent | dbca4a0ee5dac0b2f8d0ed4b1667adbf11363e35 (diff) | |
am dbca4a0e: Merge "Add Thread::isRunning and Condition::signal(WakeUpType)" into jb-mr2-dev
* commit 'dbca4a0ee5dac0b2f8d0ed4b1667adbf11363e35':
Add Thread::isRunning and Condition::signal(WakeUpType)
Diffstat (limited to 'libs/utils/Threads.cpp')
| -rw-r--r-- | libs/utils/Threads.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/utils/Threads.cpp b/libs/utils/Threads.cpp index eb964978e4..7b877e082f 100644 --- a/libs/utils/Threads.cpp +++ b/libs/utils/Threads.cpp @@ -875,6 +875,11 @@ status_t Thread::join() return mStatus; } +bool Thread::isRunning() const { + Mutex::Autolock _l(mLock); + return mRunning; +} + #ifdef HAVE_ANDROID_OS pid_t Thread::getTid() const { |