Commit bcc2327a authored by Gabriel Charette's avatar Gabriel Charette Committed by Commit Bot

[ThreadPool] Add missing static keyword on new base::ThreadPool::PostTaskAndReplyWithResult API

TBR=fdoray@chromium.org

Bug: 1026641
Change-Id: Id22f4e3e66ce2127e4cec8a9ceddcf63c107abbf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2026311Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#736218}
parent 9a65dc45
...@@ -172,10 +172,11 @@ class BASE_EXPORT ThreadPool { ...@@ -172,10 +172,11 @@ class BASE_EXPORT ThreadPool {
typename TaskReturnType, typename TaskReturnType,
typename ReplyArgType, typename ReplyArgType,
typename = EnableIfIsBaseCallback<CallbackType>> typename = EnableIfIsBaseCallback<CallbackType>>
bool PostTaskAndReplyWithResult(const Location& from_here, static bool PostTaskAndReplyWithResult(
const TaskTraits& traits, const Location& from_here,
CallbackType<TaskReturnType()> task, const TaskTraits& traits,
CallbackType<void(ReplyArgType)> reply) { CallbackType<TaskReturnType()> task,
CallbackType<void(ReplyArgType)> reply) {
auto* result = new std::unique_ptr<TaskReturnType>(); auto* result = new std::unique_ptr<TaskReturnType>();
return PostTaskAndReply( return PostTaskAndReply(
from_here, traits, from_here, traits,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment