
thread_default(?Option)

   Get default options for thread/engine creation

Arguments
   Option              A term with arity 1, or variable

Type
   library(threads)

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

Modes and Determinism
   thread_default(+) is det
   thread_default(-) is multi

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
