k_thread: Fix data race
TSan reports a data race between writing at cpp:1162 and reading at h:262. Make the thread_state atomic to prevent this.
Please register or sign in to comment
TSan reports a data race between writing at cpp:1162 and reading at h:262. Make the thread_state atomic to prevent this.