MCPcopy Create free account
hub / github.com/apache/arrow / IsMainThread

Method IsMainThread

r/src/safe-call-into-r.h:63–63  ·  view source on GitHub ↗

Check if the current thread is the main R thread

Source from the content-addressed store, hash-verified

61
62 // Check if the current thread is the main R thread
63 bool IsMainThread() { return initialized_ && std::this_thread::get_id() == thread_id_; }
64
65 arrow::StopToken GetStopToken() {
66 if (SignalStopSourceEnabled()) {

Callers 2

SafeCallIntoRAsyncFunction · 0.80
DeserializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected