Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Unified Diff: base/threading/platform_thread.h

Issue 2033243002: Introduce PlatformThread::Detach (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/threading/platform_thread_posix.cc » ('j') | base/threading/platform_thread_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/platform_thread.h
diff --git a/base/threading/platform_thread.h b/base/threading/platform_thread.h
index 72da93bf56d4fc984c35c5f49ef2a69fd475be00..765f3b367c215d65116413f91be0f5f3eebd3751 100644
--- a/base/threading/platform_thread.h
+++ b/base/threading/platform_thread.h
@@ -180,6 +180,10 @@ class BASE_EXPORT PlatformThread {
// |thread_handle|.
static void Join(PlatformThreadHandle thread_handle);
+ // Detaches and releases the thread handle. The thread is no longer joinable
+ // after this call.
danakj 2016/06/09 22:58:07 And the PlatformThreadHandle becomes invalid? On
robliao 2016/06/10 14:24:31 Yup, the PlatformThreadHandle becomes invalid. Upd
+ static void Detach(PlatformThreadHandle thread_handle);
+
// Toggles the current thread's priority at runtime. A thread may not be able
// to raise its priority back up after lowering it if the process does not
// have a proper permission, e.g. CAP_SYS_NICE on Linux. A thread may not be
« no previous file with comments | « no previous file | base/threading/platform_thread_posix.cc » ('j') | base/threading/platform_thread_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698