_settings_lock = _thread.allocate_lock()class Settings(Singleton): @option_lock(_settings_lock) def get(self): return self.__get_config()