File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ bool mCoreThreadHasCrashed(struct mCoreThread* threadContext) {
490490 }
491491 bool hasExited ;
492492 MutexLock (& threadContext -> impl -> stateMutex );
493- hasExited = threadContext -> impl -> state == mTHREAD_CRASHED ;
493+ hasExited = !!( threadContext -> impl -> requested & mTHREAD_REQ_CRASHED ) ;
494494 MutexUnlock (& threadContext -> impl -> stateMutex );
495495 return hasExited ;
496496}
@@ -567,7 +567,9 @@ bool mCoreThreadIsActive(struct mCoreThread* threadContext) {
567567 if (!threadContext -> impl ) {
568568 return false;
569569 }
570- return threadContext -> impl -> state >= mTHREAD_RUNNING && threadContext -> impl -> state < mTHREAD_EXITING && threadContext -> impl -> state != mTHREAD_CRASHED ;
570+ return threadContext -> impl -> state >= mTHREAD_RUNNING &&
571+ threadContext -> impl -> state < mTHREAD_EXITING &&
572+ !(threadContext -> impl -> requested & mTHREAD_REQ_CRASHED );
571573}
572574
573575void mCoreThreadInterrupt (struct mCoreThread * threadContext ) {
You can’t perform that action at this time.
0 commit comments