Commit 83b86d91 authored by lat9nq's avatar lat9nq
Browse files

k_scheduler_lock: Fix data race



TSan reports a race between the main thread and T37 during
IsLockedByCurrentThread and when it's set at the end of Lock(),
respectively. Set owner_thread to an atomic pointer to fix it.

Co-authored-by: default avatarbunnei <bunneidev@gmail.com>
parent e9cf2d43
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment