Fix race condition in the state machine & channel.

This commit is contained in:
Alexey Rybalchenko
2016-11-15 13:08:38 +01:00
parent 94a4d599eb
commit 12f04c7237
4 changed files with 6 additions and 3 deletions

View File

@@ -539,6 +539,7 @@ bool FairMQChannel::InitCommandInterface(FairMQTransportFactory* factory, int nu
void FairMQChannel::ResetChannel()
{
boost::unique_lock<boost::mutex> scoped_lock(fChannelMutex);
fIsValid = false;
// TODO: implement channel resetting
}