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

Function new_shared

Singular/dyn_modules/systhreads/shared.cc:486–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486void *new_shared(SharedObject *obj) {
487 acquireShared(obj);
488 void *result = omAlloc0(sizeof(SharedObject *));
489 *(SharedObject **)result = obj;
490 return result;
491}
492
493void shared_destroy(blackbox *b, void *d) {
494 SharedObject *obj = *(SharedObject **)d;

Callers 15

makeAtomicTableFunction · 0.85
makeAtomicListFunction · 0.85
makeSharedTableFunction · 0.85
makeSharedListFunction · 0.85
makeChannelFunction · 0.85
makeSyncVarFunction · 0.85
makeRegionFunction · 0.85
bindSharedObjectFunction · 0.85
regionLockFunction · 0.85
decode_sharedFunction · 0.85
createThreadFunction · 0.85
createThreadPoolFunction · 0.85

Calls 2

acquireSharedFunction · 0.85
omAlloc0Function · 0.85

Tested by

no test coverage detected