lib: posix: pthread_key: use spinlock instead of semaphore
None of the operations that `pthread_key_sem` protected were
blocking, so simply make it a spinlock.
Also made the lock static.
Signed-off-by:
Chris Friedt <cfriedt@meta.com>
Loading
Please sign in to comment