Contents

os_unfair_lock_lock_with_flags

Performs a low-level lock that acquires a passed-in lock, blocks if another thread currently holds that lock, and applies optional behavior flags.

Declaration

extern void os_unfair_lock_lock_with_flags(os_unfair_lock_t lock, os_unfair_lock_flags_t flags);

Parameters

  • lock:

    A pointer to the unfair lock to be locked.

  • flags:

    Flags that affect the behavior of the lock. For possible values, see Os_unfair_lock_flags_t.

See Also

Unfair Locking