built-in predicate
threaded_engine_post/2
ï
Descriptionï
threaded_engine_post(Engine, Term)
Posts a term to the engine term queue.
Note
This predicate requires a backend Prolog compiler providing
compatible multi-threading primitives. The value of the read-only
engines flag is set to supported
when that
is the case.
Modes and number of proofsï
threaded_engine_post(@nonvar, @term) - one
Errorsï
Engine
is a variable:instantiation_error
Engine
is neither a variable nor the name of an existing engine:existence_error(engine, Engine)
Examplesï
% post the atom "ready" to the worker_1 engine queue:
| ?- threaded_engine_post(worker_1, ready).
See also