From 47aeaabbfb6e7baf2447f3270381b6db48e290f4 Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 19 Feb 2023 17:13:08 -0500 Subject: [PATCH] cwIo.cpp : The main callback no longer indicates a failure when the mutex times out. --- cwIo.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cwIo.cpp b/cwIo.cpp index f1cf723..f9dd606 100644 --- a/cwIo.cpp +++ b/cwIo.cpp @@ -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."); } }