Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a100b5e

Browse files
committedMay 29, 2024·
[thread] add Thread stack lock held for output the unicast addresses
1 parent fd28025 commit a100b5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ void GenericThreadStackManagerImpl_OpenThread<ImplClass>::_OnPlatformEvent(const
247247
}
248248

249249
#if CHIP_DETAIL_LOGGING
250+
Impl()->LockThreadStack();
250251
LogOpenThreadStateChange(mOTInst, event->ThreadStateChange.OpenThread.Flags);
252+
Impl()->UnlockThreadStack();
251253
#endif // CHIP_DETAIL_LOGGING
252254
}
253255
}

0 commit comments

Comments
 (0)
Please sign in to comment.