MCPcopy Create free account
hub / github.com/FastLED/FastLED / intern

Function intern

src/fl/stl/string_interner.cpp.hpp:113–116  ·  view source on GitHub ↗

Convenience functions for global interning (thread-safe via mutex)

Source from the content-addressed store, hash-verified

111
112// Convenience functions for global interning (thread-safe via mutex)
113fl::string intern(const string_view& sv) {
114 fl::unique_lock<fl::mutex> lock(global_interner_mutex());
115 return global_interner().intern(sv);
116}
117
118fl::string intern(const fl::string& str) {
119 fl::unique_lock<fl::mutex> lock(global_interner_mutex());

Callers 1

internMethod · 0.85

Calls 1

internMethod · 0.80

Tested by

no test coverage detected