Fix deadlock bug where the task_demuxer_service was attempting to acquire

the reactor's lock at the same time as a work object on the reactor was
attempting to acquire the task_demuxer_service's lock.
This commit is contained in:
chris_kohlhoff 2005-12-20 19:25:23 +00:00
parent 250765fd8c
commit 229718c12f

View File

@ -101,7 +101,6 @@ public:
{
// Prepare to execute the task.
task_is_running_ = true;
task_.reset();
lock.unlock();
// Helper class to perform operations on block exit.
@ -127,6 +126,7 @@ public:
} c(lock, task_is_running_);
// Run the task. May throw an exception.
task_.reset();
task_.run();
}
else