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

Method ThreadSafeCounter

tests/cpp/extra/test_c_env_api.cc:235–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 std::atomic<int>* deinit_count_ptr;
234
235 ThreadSafeCounter(int v, std::atomic<int>* init_ptr, std::atomic<int>* deinit_ptr)
236 : value(v), init_count_ptr(init_ptr), deinit_count_ptr(deinit_ptr) {}
237};
238
239// Global pointers for the current test counters

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected