| 26 | namespace ark { |
| 27 | |
| 28 | bool 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 | |
| 47 | AFGUID AFCGUIDModule::CreateGUID() |
| 48 | { |
nothing calls this directly
no test coverage detected