From: Olivier Dion Date: Wed, 29 Mar 2023 19:22:13 +0000 (-0400) Subject: tests: Use uatomic for accessing global states X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=c8c32a5208d6e624f9ae9466196e355269c611d5;hp=c8c32a5208d6e624f9ae9466196e355269c611d5;p=urcu.git tests: Use uatomic for accessing global states Global states accesses were protected via memory barriers. Use the uatomic API with the CMM memory model so that TSAN does not warn about non-atomic concurrent accesses. Also, the thread id map mutex must be unlocked after setting the new created thread id in the map. Otherwise, the new thread could observe an unset id. Change-Id: I1ecdc387b3f510621cbc116ad3b95c676f5d659a Co-authored-by: Mathieu Desnoyers Signed-off-by: Olivier Dion Signed-off-by: Mathieu Desnoyers ---