MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / getUniqueId

Method getUniqueId

src/openms/source/CONCEPT/UniqueIdGenerator.cpp:20–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 boost::uniform_int<UInt64>* UniqueIdGenerator::dist_ = nullptr;
19
20 UInt64 UniqueIdGenerator::getUniqueId()
21 {
22 UniqueIdGenerator& instance = getInstance_();
23#ifdef _OPENMP
24 UInt64 val;
25#pragma omp critical (OPENMS_UniqueIdGenerator_getUniqueId)
26 {
27 val = (*instance.dist_)(*instance.rng_);
28 }
29 // note: OpenMP can only work on a structured block, return needs to be outside that block
30 return val;
31#else
32 return (*instance.dist_)(*instance.rng_);
33#endif
34 }
35
36 UInt64 UniqueIdGenerator::getSeed()
37 {

Callers 15

showGoToDialogMethod · 0.80
main_Method · 0.80
quantifyFraction_Method · 0.80
processInputMethod · 0.80
main_Method · 0.80
write_out_body_Function · 0.80
main_Method · 0.80
main_Method · 0.80
common_main_Method · 0.80
main_Method · 0.80
buildAmbiguityGroupMethod · 0.80

Calls

no outgoing calls

Tested by 4

storeMethod · 0.64
_testUniqueIdInterfaceFunction · 0.64
test_BaseFeatureFunction · 0.64
testConsensusMapFunction · 0.64