diff options
author | 2011-07-06 11:37:53 -0700 | |
---|---|---|
committer | 2011-07-06 11:37:53 -0700 | |
commit | 5161eb7b233cf3b806046fd935f248b3844d9bd7 (patch) | |
tree | 59ec630bb655b3c66819a8ce35dfa0b0101f7da7 /include/utils/threads.h | |
parent | 55aaccd7e8e3f5a4b0f4333c6bd2404eeac7bbb1 (diff) | |
parent | 697283e9177ee5730bf5c652c3c05d3aa3838ace (diff) |
Merge "Add Thread::join"
Diffstat (limited to 'include/utils/threads.h')
-rw-r--r-- | include/utils/threads.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/utils/threads.h b/include/utils/threads.h index 41f67e40580c..c8e9c0413d90 100644 --- a/include/utils/threads.h +++ b/include/utils/threads.h @@ -510,6 +510,10 @@ public: // that case. status_t requestExitAndWait(); + // Wait until this object's thread exits. Returns immediately if not yet running. + // Do not call from this object's thread; will return WOULD_BLOCK in that case. + status_t join(); + protected: // exitPending() returns true if requestExit() has been called. bool exitPending() const; |