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

Function set_default_memory_pool

python/pyarrow/src/arrow/python/common.cc:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39static MemoryPool* default_python_pool = nullptr;
40
41void set_default_memory_pool(MemoryPool* pool) {
42 std::lock_guard<std::mutex> guard(memory_pool_mutex);
43 default_python_pool = pool;
44}
45
46MemoryPool* get_memory_pool() {
47 std::lock_guard<std::mutex> guard(memory_pool_mutex);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected