CVSROOT: /cvs Module name: src Changes by: v...@cvs.openbsd.org 2018/05/13 10:21:26
Modified files: lib/libc/thread: rthread.c Log message: Add memory barriers to libc's _spinlock() to make the mechanism serialize memory accesses properly. _spinlock()'s backend, _atomic_lock(), already issues an entry barrier on some architectures, but that practice has not been consistent. This patch generalizes the barrier use. OK kettenis@, mpi@