cwIo.cpp : The main callback no longer indicates a failure when the mutex times out.
This commit is contained in:
parent
d4eacdf964
commit
47aeaabbfb
4
cwIo.cpp
4
cwIo.cpp
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user