Provides a C++11-style thread class and thread pool that can safely be interrupted from R; see, Nagler (2018) <arXiv:1811.00450>.