diff options
author | Glenn Kasten <gkasten@google.com> | 2011-07-06 11:37:53 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-06 11:37:53 -0700 |
commit | be3c018f8b00738cd7e884058966f82597b8e370 (patch) | |
tree | 6f4d3f8e77e1b823447bfb9e4112d284a83128d1 /include/utils/threads.h | |
parent | 7e918860f9d496bf0c4b7e1649216c9209c57850 (diff) | |
parent | 58e012d1e37e1272d43c9ff0f56c9b236dd1d7f1 (diff) | |
download | frameworks_native-be3c018f8b00738cd7e884058966f82597b8e370.zip frameworks_native-be3c018f8b00738cd7e884058966f82597b8e370.tar.gz frameworks_native-be3c018f8b00738cd7e884058966f82597b8e370.tar.bz2 |
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 41f67e4..c8e9c04 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; |