fn pthread_spin_trylock(s: *c.pthread_spinlock_t) callconv(.c) c_int
fn pthread_spin_trylock(s: *c.pthread_spinlock_t) callconv(.c) c_int { const spin: *SpinLock = @ptrCast(s); return if (@cmpxchgStrong(SpinLock, spin, .unlocked, .locked, .acquire, .monotonic)) |_| @backingInt(c.E.BUSY) else 0; }