[ library(threads) | Reference Manual | Alphabetic Index ]

thread_default(?Option)

Get default options for thread/engine creation
Option
A term with arity 1, or variable

Description

Accesses the default thread/engine creation options: local(KBytes), global(KBytes) and detached(Bool).

Modes and Determinism

Examples

    % This predicate is defined as:
    thread_default(local(KB))  :- get_flag(default_localsize,  KB).
    thread_default(global(KB)) :- get_flag(default_globalsize, KB).
    thread_default(detached(false)).
    

See Also

thread_create / 2, thread_property / 2, engine_create / 2, get_flag / 2