setThreadOptions function

Thread options for RcppParallel