Logtalk reference manual
Entity directive: synchronized/0

synchronized/0

Description

synchronized

Declares that all object (or category) predicates and non-terminals will be synchronized (i.e. all predicates and non-terminals will use the same mutex for thread synchronization). Synchronized predicates and non-terminals are silently compiled as normal predicates and normal non-terminals on Prolog compilers that don't support multi-threading programming.

Template and modes

synchronized

Examples

:- synchronized.