Exemple #1
0
void ThreadPool::AddTask(const std::function<void ()>& callback, int dispatch_key)
{
    AddTaskInternal(NULL, callback, dispatch_key);
}
Exemple #2
0
void ThreadPool::AddTask(Closure<void ()>* callback, int dispatch_key)
{
    AddTaskInternal(callback, NULL, dispatch_key);
}
Exemple #3
0
void ThreadPool::AddPriorityTask(std::function<void ()> callback) {
    AddTaskInternal(true, NULL, callback);
}
Exemple #4
0
void ThreadPool::AddPriorityTask(Closure<void ()>* callback) {
    AddTaskInternal(true, callback, NULL);
}
Exemple #5
0
void ThreadPool::AddTask(std::function<void ()> callback) {
    AddTaskInternal(false, NULL, callback);
}
Exemple #6
0
void ThreadPool::AddTask(Closure<void ()>* callback) {
    AddTaskInternal(false, callback, NULL);
}