| 104 | static std::string* gDefaultTag; |
| 105 | |
| 106 | void SetDefaultTag(const std::string_view tag) { |
| 107 | std::lock_guard<std::recursive_mutex> lock(TagLock()); |
| 108 | if (gDefaultTag != nullptr) { |
| 109 | delete gDefaultTag; |
| 110 | gDefaultTag = nullptr; |
| 111 | } |
| 112 | if (!tag.empty()) { |
| 113 | gDefaultTag = new std::string(tag); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | static bool gInitialized = false; |
| 118 |