remove excess sleep identified in #169
This commit is contained in:
parent
bcbdd00212
commit
7422cda6c6
1 changed files with 0 additions and 1 deletions
|
@ -46,7 +46,6 @@ MultiThreadedExecutor::spin()
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> wait_lock(wait_mutex_);
|
std::lock_guard<std::mutex> wait_lock(wait_mutex_);
|
||||||
for (; thread_id < number_of_threads_ - 1; ++thread_id) {
|
for (; thread_id < number_of_threads_ - 1; ++thread_id) {
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
|
||||||
auto func = std::bind(&MultiThreadedExecutor::run, this, thread_id);
|
auto func = std::bind(&MultiThreadedExecutor::run, this, thread_id);
|
||||||
threads.emplace_back(func);
|
threads.emplace_back(func);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue