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

Method stop

gecode/search/par/engine.hpp:171–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169
170 template<class Tracer>
171 forceinline void
172 Engine<Tracer>::stop(void) {
173 m_search.acquire();
174 bool bs = signal();
175 has_stopped = true;
176 if (bs)
177 e_search.signal();
178 m_search.release();
179 }
180
181
182 /*

Callers

nothing calls this directly

Calls 3

acquireMethod · 0.45
signalMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected