MCPcopy Create free account
hub / github.com/Singular/Singular / findSharedObject

Function findSharedObject

Singular/dyn_modules/systhreads/shared.cc:266–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266SharedObject *findSharedObject(SharedObjectTable &table,
267 Lock *lock, string &name)
268{
269 int was_locked = lock->is_locked();
270 SharedObject *result = NULL;
271 if (!was_locked)
272 lock->lock();
273 if (table.count(name)) {
274 result = table[name];
275 }
276 if (!was_locked)
277 lock->unlock();
278 return result;
279}
280
281class Transactional: public SharedObject {
282private:

Callers 2

typeSharedObjectFunction · 0.85
bindSharedObjectFunction · 0.85

Calls 7

wrong_num_argsFunction · 0.85
not_a_uriFunction · 0.85
strFunction · 0.85
is_lockedMethod · 0.45
lockMethod · 0.45
countMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected