diff options
author | Ben Murdoch <benm@google.com> | 2010-11-18 18:32:45 +0000 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-11-18 18:38:07 +0000 |
commit | 513209b27ff55e2841eac0e4120199c23acce758 (patch) | |
tree | aeba30bb08c5f47c57003544e378a377c297eee6 /base/worker_pool_linux.cc | |
parent | 164f7496de0fbee436b385a79ead9e3cb81a50c1 (diff) | |
download | external_chromium-513209b27ff55e2841eac0e4120199c23acce758.zip external_chromium-513209b27ff55e2841eac0e4120199c23acce758.tar.gz external_chromium-513209b27ff55e2841eac0e4120199c23acce758.tar.bz2 |
Merge Chromium at r65505: Initial merge by git.
Change-Id: I31d8f1d8cd33caaf7f47ffa7350aef42d5fbdb45
Diffstat (limited to 'base/worker_pool_linux.cc')
-rw-r--r-- | base/worker_pool_linux.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/base/worker_pool_linux.cc b/base/worker_pool_linux.cc index 2aa1df2..8c96ca0 100644 --- a/base/worker_pool_linux.cc +++ b/base/worker_pool_linux.cc @@ -84,11 +84,29 @@ void WorkerThread::ThreadMain() { } // namespace +// NOTE(shess): Temporarily allow the Mac WorkerPool implementation to +// call into the linux so that it can provide a command-line flag for +// switching back and forth. After evaluating, either remove the +// ifdef, or shift this to a shared POSIX implementation. +// http://crbug.com/44392 +#if defined(OS_MACOSX) +namespace worker_pool_mac { + +bool MacPostTaskHelper(const tracked_objects::Location& from_here, + Task* task, bool task_is_slow) { + g_lazy_worker_pool.Pointer()->PostTask(from_here, task, task_is_slow); + return true; +} + +} // namespace worker_pool_mac + +#else bool WorkerPool::PostTask(const tracked_objects::Location& from_here, Task* task, bool task_is_slow) { g_lazy_worker_pool.Pointer()->PostTask(from_here, task, task_is_slow); return true; } +#endif namespace base { |