[ library(threads) | Reference Manual | Alphabetic Index ]
Equivalent to once(Goal) but with mutual exclusion
- Mutex handle or alias
- A callable term
Equivalent to the with_mutex/2 built-in predicate, but also accepts
an atomic mutex alias.
This predicate is sensitive to its module context (tool predicate, see @/2).
mutex_create / 1, mutex_create / 2, with_mutex / 2