Call this method from the R thread (e.g., on package load) to save an internal copy of the thread id.
| 47 | // Call this method from the R thread (e.g., on package load) |
| 48 | // to save an internal copy of the thread id. |
| 49 | void Initialize() { |
| 50 | thread_id_ = std::this_thread::get_id(); |
| 51 | initialized_ = true; |
| 52 | ResetError(); |
| 53 | } |
| 54 | |
| 55 | bool IsInitialized() { return initialized_; } |
| 56 |
no outgoing calls
no test coverage detected