MCPcopy Create free account
hub / github.com/Gecode/gecode / cancel

Method cancel

gecode/kernel/shared-object.hpp:109–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 if (o != nullptr) o->rc.inc();
108 }
109 forceinline void
110 SharedHandle::cancel(void) {
111 if ((o != nullptr) && o->rc.dec())
112 delete o;
113 o=nullptr;
114 }
115 forceinline void
116 SharedHandle::object(SharedHandle::Object* n) {
117 if (n != o) {

Callers

nothing calls this directly

Calls 1

decMethod · 0.45

Tested by

no test coverage detected