#[unsafe(no_mangle)]pub unsafe extern "C" fn pthread_spin_lock(
lock: *mut pthread_spinlock_t,
) -> c_intExpand description
See https://pubs.opengroup.org/onlinepubs/9799919799/functions/pthread_spin_lock.html.
Locks the spin lock referenced by lock.
Upon success, returns 0. Upon failure, an error number is returned.
ยงSafety
It is undefined behaviour for any of the following:
lockis uninitialized.- The calling thread holds
lockat the time the call is made.