MCPcopy Create free account
hub / github.com/apache/tvm-ffi / ThreadSafeCounter

Method ThreadSafeCounter

tests/cpp/test_init_once.cc:158–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 std::atomic<int>* deinit_count_ptr;
157
158 ThreadSafeCounter(int v, std::atomic<int>* init_ptr, std::atomic<int>* deinit_ptr)
159 : value(v), init_count_ptr(init_ptr), deinit_count_ptr(deinit_ptr) {}
160};
161
162// Global pointers for the current test counters

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected