Changes due to continue development of the IpcLibs. Not done yet.
This commit is contained in:
@@ -160,41 +160,20 @@ ClientReq::processServerData(
|
||||
// Acquire exclusive access to the object
|
||||
pthread_mutex_lock(&m_mutex);
|
||||
|
||||
try {
|
||||
// Save server dataetup the ServerData object
|
||||
m_pServerData = pServerData;
|
||||
m_serverDataLen = serverDataLength;
|
||||
|
||||
// Save server dataetup the ServerData object
|
||||
m_pServerData = pServerData;
|
||||
m_serverDataLen = serverDataLength;
|
||||
// Mark the request as completed
|
||||
m_completed = true;
|
||||
|
||||
// Check if we must awaken the thread that submitted the request
|
||||
// so that it can service the server data.
|
||||
if (!m_submitThreadActive)
|
||||
{
|
||||
// The submit thread is not active, awaken it.
|
||||
m_submitThreadActive = true;
|
||||
pthread_cond_signal(&m_condition);
|
||||
}
|
||||
}
|
||||
catch(...) {
|
||||
|
||||
DbgTrace(0, "ClientReq::processServerData- Exception caught, Obj = %08X\n", this);
|
||||
|
||||
// Free the server data buffer
|
||||
delete[] pServerData;
|
||||
|
||||
// Record that we suffered an internal problem and mark the
|
||||
// request as completed.
|
||||
m_internalProblem = true;
|
||||
m_completed = true;
|
||||
|
||||
// Check if we must awaken the thread that submitted the request
|
||||
// so that it can deal with the problem.
|
||||
if (!m_submitThreadActive)
|
||||
{
|
||||
// The submit thread is not active, awaken it.
|
||||
m_submitThreadActive = true;
|
||||
pthread_cond_signal(&m_condition);
|
||||
}
|
||||
// Check if we must awaken the thread that submitted the request
|
||||
// so that it can service the server data.
|
||||
if (!m_submitThreadActive)
|
||||
{
|
||||
// The submit thread is not active, awaken it.
|
||||
m_submitThreadActive = true;
|
||||
pthread_cond_signal(&m_condition);
|
||||
}
|
||||
|
||||
// Release exclusive access to the object
|
||||
|
||||
Reference in New Issue
Block a user