MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / Init

Method Init

src/plugin/utility/src/AFCGUIDModule.cpp:28–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace ark {
27
28bool AFCGUIDModule::Init()
29{
30#ifdef ARK_HAVE_LANG_CXX14
31#ifdef AF_THREAD_SAFE
32 uid_generator_ = std::make_unique<AFUidGeneratorThreadSafe>();
33#else
34 uid_generator_ = std::make_unique<AFUidGenerator>();
35#endif
36#else
37#ifdef AF_THREAD_SAFE
38 uid_generator_.reset(ARK_NEW AFUidGeneratorThreadSafe());
39#else
40 uid_generator_.reset(ARK_NEW AFUidGenerator());
41#endif
42#endif
43
44 return true;
45}
46
47AFGUID AFCGUIDModule::CreateGUID()
48{

Callers

nothing calls this directly

Calls 3

AFUidGeneratorClass · 0.85
resetMethod · 0.45

Tested by

no test coverage detected