r-lib / later

Schedule an R function or formula to run after a specified period of time.
https://r-lib.github.io/later
Other
137 stars 27 forks source link

[Question] is later compatible with OpenMP? #168

Open dipterix opened 1 year ago

dipterix commented 1 year ago

I was wondering if I run later c++ BackgroundTask::execute with omp code inside, will there be any side-effects?

Something like

void execute() {

  ...
#pragma omp parallel num_threads(ncores)
{
  ...
}
}