Set or get thread options
Arguments
- n_threads
number of threads to set
- stack_size
Stack size (in bytes) to use for worker threads. The default used for
"auto"
is 2MB on 32-bit systems and 4MB on 64-bit systems.
Value
detect_threads
returns an integer of default threads that
is determined by the number of CPU
cores; ravetools_threads
returns nothing.
Examples
if(interactive()){
detect_threads()
ravetools_threads(n_threads = 2)
}