@kabel42 @mirabilos @rl_dane @JdeBP
You need some assembly for context switching. But, for example, on Linux you can use the futex system call and build fast locks entirely in C with C11 with the fast paths never hitting the kernel, you cannot do this prior to C11.