Function - Create a new lock set.
The task receiving the send right to the newly created lock set.
[out send right] The port naming the lock set which represents the lock.
[in scalar] The number of locks the lock set will represent (must be a positive value).
[in scalar] The blocked thread wakeup policy for the newly created lock set. Valid policies are:
a first-in-first-out policy for scheduling thread wakeup.
a fixed priority policy for scheduling thread wakeup.
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
The lock set was created.
Either the task or policy argument is invalid, or the locks argument
has a value that is less than or equal to zero.
The kernel could not allocate the lock set.