RcppThread::Thread class

R-friendly version of std::thread.

Instances of class Thread behave just like instances of std::thread, see http://en.cppreference.com/w/cpp/thread/thread for methods and examples. There is one difference exception: Whenever other threads are doing some work, the main thread periodically synchronizes with R. When the user interrupts a threaded computation, any thread will stop as soon as it encounters a checkUserInterrupt().

Public functions

void join()

Function documentation

void RcppThread::Thread::join()

checks for interruptions and messages every 0.25 seconds and after computations have finished.