static */
| 37 | |
| 38 | /* static */ |
| 39 | void ServerFactory::Register(const string& server_type, |
| 40 | ServerFactory* factory) { |
| 41 | mutex_lock l(*get_server_factory_lock()); |
| 42 | if (!server_factories()->insert({server_type, factory}).second) { |
| 43 | LOG(ERROR) << "Two server factories are being registered under " |
| 44 | << server_type; |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | /* static */ |
| 49 | Status ServerFactory::GetFactory(const ServerDef& server_def, |
nothing calls this directly
no test coverage detected