FreeBSD/sys/compat/cloudabi/cloudabi_futex.c
/* Syncs in the owner of the lock from userspace if needed. */
Syncs in the owner of the lock from userspace if needed.
Syncs in the owner of the lock from userspace if needed .
static int
futex_lock_update_owner(struct futex_lock *fl, cloudabi_lock_t *address)
{
	cloudabi_lock_t lock;
	int error;
	if (fl->fl_owner == LOCK_OWNER_UNKNOWN) {
		error = futex_user_load(address, &lock);
		if (error != 0)
			return (error);
		futex_lock_set_owner(fl, lock);
	}
	return (0);
}
static int futex_lock_update_owner ( struct futex_lock * fl , cloudabi_lock_t * address ) { cloudabi_lock_t lock ; int error ; if ( fl -> fl_owner == LOCK_OWNER_UNKNOWN ) { error = futex_user_load ( address , & lock ) ; if ( error != 0 ) return ( error ) ; futex_lock_set_owner ( fl , lock ) ; } return ( 0 ) ; }
Syncs in the owner of the lock from userspace if needed.
Syncs in the owner of the lock from userspace if needed .