https://github.com/D-Programming-Language/druntime/blob/e66f03494a13c7ce13bbe4c260ce689682af865e/src/core/sys/posix/pthread.d#L26 That makes it impossible to build any sort of @nogc nothrow synchronization.
Commit pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/305dfed2fdb82680c9d9756a53f1509ea9454e5d Add @nogc to pthread functions. Fixes Issue 14601
Commit pushed to stable at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/305dfed2fdb82680c9d9756a53f1509ea9454e5d Add @nogc to pthread functions.