MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / SetOnDrop

Method SetOnDrop

crates/c-api/tests/val.cc:83–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82public:
83 SetOnDrop() : flag_(std::make_shared<std::atomic<bool>>(false)) {}
84 SetOnDrop(const SetOnDrop &) = delete;
85 SetOnDrop(SetOnDrop &&obj) : flag_(obj.flag_) { obj.flag_.reset(); }
86 ~SetOnDrop() {

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected