Function - Create a new lock set.
kern_return_t lock_set_create
(task_t task,
lock_set_t lock_set,
int locks,
int policy);
The lock_set_create function creates a new lock set representing a collection of associated locks. The lock set is associated with the specified task. A send right naming the lock set is returned to the caller.
Functions: lock_acquire, lock_make_stable, lock_try, lock_handoff, lock_handoff_accept, lock_try, lock_set_destroy.