[ Control | Reference Manual | Alphabetic Index ]
Initialise the mutual exclusion lock MutexId
This built-in is used in parallel programs in connection with mutex/2
to implement mutual exclusion between parallel workers.
Modes and Determinism
This predicate is sensitive to its module context (tool predicate, see @/2).
- (4) instantiation fault
- MutexId is not instantiated
- (5) type error
- MutexId is not an atom
mutex / 2