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

Method acquire

gecode/support/thread/thread.hpp:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67#endif
68 }
69 forceinline void
70 Mutex::acquire(void) {
71#ifdef GECODE_HAS_THREADS
72#ifndef GECODE_USE_OSX_UNFAIR_MUTEX
73 m.lock();
74#else
75 os_unfair_lock_lock(&l);
76#endif
77#endif
78 }
79
80 forceinline bool
81 Mutex::tryacquire(void) {

Callers 15

reportMethod · 0.45
nextMethod · 0.45
solutionMethod · 0.45
findMethod · 0.45
runMethod · 0.45
resetMethod · 0.45
dfs.hppFile · 0.45
waitMethod · 0.45
statisticsMethod · 0.45
idleMethod · 0.45
busyMethod · 0.45
stopMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected