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

Method OwnsThisThread

cpp/src/arrow/util/thread_pool.cc:253–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253bool SerialExecutor::OwnsThisThread() {
254 std::lock_guard lk(state_->mutex);
255 return std::this_thread::get_id() == state_->current_thread;
256}
257#ifdef ARROW_ENABLE_THREADING
258
259void SerialExecutor::RunLoop() {

Callers 1

TEST_FFunction · 0.80

Calls 1

GetCurrentThreadPoolFunction · 0.85

Tested by 1

TEST_FFunction · 0.64