test
This commit is contained in:
parent
7cf9aafcc7
commit
3389491e52
1 changed files with 8 additions and 8 deletions
|
@ -157,11 +157,11 @@ void CProtocol::DeleteSendMessQueue()
|
||||||
|
|
||||||
void CProtocol::OnTimerSendMess()
|
void CProtocol::OnTimerSendMess()
|
||||||
{
|
{
|
||||||
Mutex.lock();
|
// Mutex.lock();
|
||||||
{
|
// {
|
||||||
SendMessage();
|
SendMessage();
|
||||||
}
|
// }
|
||||||
Mutex.unlock();
|
// Mutex.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CProtocol::ParseMessage ( const CVector<unsigned char>& vecbyData,
|
bool CProtocol::ParseMessage ( const CVector<unsigned char>& vecbyData,
|
||||||
|
@ -170,8 +170,8 @@ bool CProtocol::ParseMessage ( const CVector<unsigned char>& vecbyData,
|
||||||
/*
|
/*
|
||||||
return code: true -> ok; false -> error
|
return code: true -> ok; false -> error
|
||||||
*/
|
*/
|
||||||
Mutex.lock();
|
// Mutex.lock();
|
||||||
{
|
// {
|
||||||
int iRecCounter, iRecID, iData;
|
int iRecCounter, iRecID, iData;
|
||||||
unsigned int iPos;
|
unsigned int iPos;
|
||||||
CVector<uint8_t> vecData;
|
CVector<uint8_t> vecData;
|
||||||
|
@ -250,8 +250,8 @@ for ( int i = 0; i < iNumBytes; i++ ) {
|
||||||
{
|
{
|
||||||
return false; // return error code
|
return false; // return error code
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
Mutex.unlock();
|
// Mutex.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CProtocol::CreateJitBufMes ( const int iJitBufSize )
|
void CProtocol::CreateJitBufMes ( const int iJitBufSize )
|
||||||
|
|
Loading…
Reference in a new issue