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