diff options
author | 2013-03-11 14:34:56 -0700 | |
---|---|---|
committer | 2013-03-11 14:34:56 -0700 | |
commit | 9447be65c34b66b01a19a85f4b07bb9c685e847a (patch) | |
tree | 9c1d7f892971ad0dfc63b34ff1ce287d554c26ef /include/utils/Thread.h | |
parent | 175264b09c6080b29a23fc9f545d4b99445714bd (diff) |
Add Thread::isRunning and Condition::signal(WakeUpType)
The signal() method is useful to choose whether to wake up one or
all threads.
Change-Id: I062ab6d3ddd306a9fb735549ea140e2a76eed75a
Diffstat (limited to 'include/utils/Thread.h')
-rw-r--r-- | include/utils/Thread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/utils/Thread.h b/include/utils/Thread.h index 4a34abd788..df30611352 100644 --- a/include/utils/Thread.h +++ b/include/utils/Thread.h @@ -67,6 +67,9 @@ public: // Do not call from this object's thread; will return WOULD_BLOCK in that case. status_t join(); + // Indicates whether this thread is running or not. + bool isRunning() const; + #ifdef HAVE_ANDROID_OS // Return the thread's kernel ID, same as the thread itself calling gettid() or // androidGetTid(), or -1 if the thread is not running. |