return res;
}
+ res = CATCPCreateSendMutex();
+ if (CA_STATUS_OK == res)
+ {
+ res = CATCPCreateSendCond();
+ }
+ if (CA_STATUS_OK != res)
+ {
+ OIC_LOG(ERROR, TAG, "failed to create send data mutex/cond");
+ CATCPDestroyMutex();
+ CATCPDestroyCond();
+ CATCPDestroySendMutex();
+ CATCPDestroySendCond();
+ return res;
+ }
+
#ifndef SINGLE_THREAD
caglobals.tcp.threadpool = handle;
#endif
if (CA_STATUS_OK != res)
{
OIC_LOG(ERROR, TAG, "failed to close TLS session");
- return res;
}
#endif
CATCPDestroyMutex();
CATCPDestroyCond();
+
+ CATCPDestroySendMutex();
+ CATCPDestroySendCond();
}
void CATCPSendDataThread(void *threadData)