MCPcopy Create free account
hub / github.com/Gecode/gecode / operator ()

Method operator ()

gecode/kernel/data/rnd.hpp:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 m.release();
121 }
122 forceinline unsigned int
123 Rnd::IMP::operator ()(unsigned int n) {
124 unsigned int r;
125 m.acquire();
126 r=rg(n);
127 m.release();
128 return r;
129 }
130 forceinline int
131 Rnd::IMP::operator ()(int n) {
132 int r;

Callers

nothing calls this directly

Calls 3

rgFunction · 0.85
acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected