cwThread.cpp : Added check for state=='exited' in wait for state.

This commit is contained in:
kevin 2025-03-29 12:29:49 -04:00
parent df65e0ac23
commit 1df530a36b

View File

@ -59,6 +59,11 @@ namespace cw
if(curStateId == stateId )
break;
if(curStateId == kExitedThId)
{
return cwLogError(kInvalidStateRC,"Cannot wait on an thread that has already exited.");
}
sleepUs( p->waitMicros );