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