Index: base/threading/platform_thread_posix.cc |
diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc |
index cb20ba860fc579fe0086c2ee43893b6c2d6444b9..9dd16e39e3e53f88c961b0e64d4d3ee183f713e6 100644 |
--- a/base/threading/platform_thread_posix.cc |
+++ b/base/threading/platform_thread_posix.cc |
@@ -187,16 +187,24 @@ const char* PlatformThread::GetName() { |
bool PlatformThread::CreateWithPriority(size_t stack_size, Delegate* delegate, |
PlatformThreadHandle* thread_handle, |
ThreadPriority priority) { |
- return CreateThread(stack_size, true, // joinable thread |
- delegate, thread_handle, priority); |
+ return CreateThread(stack_size, true /* joinable thread */, delegate, |
+ thread_handle, priority); |
} |
// static |
bool PlatformThread::CreateNonJoinable(size_t stack_size, Delegate* delegate) { |
+ return CreateNonJoinableWithPriority(stack_size, delegate, |
+ ThreadPriority::NORMAL); |
+} |
+ |
+// static |
+bool PlatformThread::CreateNonJoinableWithPriority(size_t stack_size, |
+ Delegate* delegate, |
+ ThreadPriority priority) { |
PlatformThreadHandle unused; |
bool result = CreateThread(stack_size, false /* non-joinable thread */, |
- delegate, &unused, ThreadPriority::NORMAL); |
+ delegate, &unused, priority); |
return result; |
} |