cwIo.cpp : The main callback no longer indicates a failure when the mutex times out.

This commit is contained in:
kevin 2023-02-19 17:13:08 -05:00
parent d4eacdf964
commit 47aeaabbfb

View File

@ -214,7 +214,11 @@ namespace cw
{
if((rc = mutex::unlock(p->cbMutexH)) != kOkRC )
{
rc = cwLogError(rc,"io mutex callback mutex unlock failed.");
// Time out is not a failure
if( rc == kTimeOutRC )
rc = kOkRC;
else
rc = cwLogError(rc,"io mutex callback mutex unlock failed.");
}
}