summaryrefslogtreecommitdiffstats
path: root/base/platform_thread.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 23:23:59 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 23:23:59 +0000
commit7bb813b123af8c00374b97c738712cd3629644ec (patch)
treec21de2bd74dbbfe50c11fa19d4d9f9f82c1297d1 /base/platform_thread.h
parentc915560f44ab7a7a9dce6fef15cb16eea736cffa (diff)
downloadchromium_src-7bb813b123af8c00374b97c738712cd3629644ec.zip
chromium_src-7bb813b123af8c00374b97c738712cd3629644ec.tar.gz
chromium_src-7bb813b123af8c00374b97c738712cd3629644ec.tar.bz2
Added a new method CreateNonJoinable() to PlatformThread. Added the windows and posix implementations.
Review URL: http://codereview.chromium.org/40133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11053 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_thread.h')
-rw-r--r--base/platform_thread.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/base/platform_thread.h b/base/platform_thread.h
index 1ae9c0f..4a2d507 100644
--- a/base/platform_thread.h
+++ b/base/platform_thread.h
@@ -65,6 +65,11 @@ class PlatformThread {
static bool Create(size_t stack_size, Delegate* delegate,
PlatformThreadHandle* thread_handle);
+ // CreateNonJoinable() does the same thing as Create() except the thread
+ // cannot be Join()'d. Therefore, it also does not output a
+ // PlatformThreadHandle.
+ static bool CreateNonJoinable(size_t stack_size, Delegate* delegate);
+
// Joins with a thread created via the Create function. This function blocks
// the caller until the designated thread exits. This will invalidate
// |thread_handle|.
@@ -75,4 +80,3 @@ class PlatformThread {
};
#endif // BASE_PLATFORM_THREAD_H_
-