diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 23:23:59 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 23:23:59 +0000 |
commit | 7bb813b123af8c00374b97c738712cd3629644ec (patch) | |
tree | c21de2bd74dbbfe50c11fa19d4d9f9f82c1297d1 /base/platform_thread_win.cc | |
parent | c915560f44ab7a7a9dce6fef15cb16eea736cffa (diff) | |
download | chromium_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_win.cc')
-rw-r--r-- | base/platform_thread_win.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/base/platform_thread_win.cc b/base/platform_thread_win.cc index 236c00b..2dd325e 100644 --- a/base/platform_thread_win.cc +++ b/base/platform_thread_win.cc @@ -85,6 +85,14 @@ bool PlatformThread::Create(size_t stack_size, Delegate* delegate, } // static +bool PlatformThread::CreateNonJoinable(size_t stack_size, Delegate* delegate) { + PlatformThreadHandle thread_handle; + bool result = Create(stack_size, delegate, &thread_handle); + CloseHandle(thread_handle); + return result; +} + +// static void PlatformThread::Join(PlatformThreadHandle thread_handle) { DCHECK(thread_handle); |