
mutex_init(+MutexId)

   Initialise the mutual exclusion lock MutexId

Arguments
   MutexId             Atom.

Type
   Control

Description
   This built-in is used in parallel programs in connection with mutex/2
   to implement mutual exclusion between parallel workers.
    

Modes and Determinism
   mutex_init(+) is det

Modules
   This predicate is sensitive to its module context (tool predicate, see @/2).

Exceptions
     4 --- MutexId is not instantiated
     5 --- MutexId is not an atom

See Also
   mutex / 2
