This commit is contained in:
Volker Fischer 2006-03-08 18:52:55 +00:00
parent a4610ef287
commit 58e5dae5a7

View file

@ -90,8 +90,13 @@ void CProtocol::EnqueueMessage ( CVector<uint8_t>& vecMessage,
const int iCnt, const int iCnt,
const int iID ) const int iID )
{ {
// check if list is empty so that we have to initiate a send process bool bListWasEmpty;
const bool bListWasEmpty = SendMessQueue.empty();
Mutex.lock();
{
// check if list is empty so that we have to initiate a send process
bListWasEmpty = SendMessQueue.empty();
}
// create send message object for the queue // create send message object for the queue
CSendMessage SendMessageObj ( vecMessage, iCnt, iID ); CSendMessage SendMessageObj ( vecMessage, iCnt, iID );