dispatch
dispatch copied to clipboard
Simple implementation GCD in C++11
Results
2
dispatch issues
Sort by
recently updated
recently updated
newest added
I thinks, condition.notify_one() must be call in mutex lock scope. Why you try to avoid it? (usage reference :http://en.cppreference.com/w/cpp/thread/condition_variable) ================================== void thread_pool::push_task_with_priority(const dispatch::function& task, queue::priority priority) { { std::unique_lock lock(mutex);...