void ThreadPool::AddTask(const std::function<void ()>& callback, int dispatch_key) { AddTaskInternal(NULL, callback, dispatch_key); }
void ThreadPool::AddTask(Closure<void ()>* callback, int dispatch_key) { AddTaskInternal(callback, NULL, dispatch_key); }
void ThreadPool::AddPriorityTask(std::function<void ()> callback) { AddTaskInternal(true, NULL, callback); }
void ThreadPool::AddPriorityTask(Closure<void ()>* callback) { AddTaskInternal(true, callback, NULL); }
void ThreadPool::AddTask(std::function<void ()> callback) { AddTaskInternal(false, NULL, callback); }
void ThreadPool::AddTask(Closure<void ()>* callback) { AddTaskInternal(false, callback, NULL); }