| 47 | } |
| 48 | |
| 49 | MessageHandler find_message_handler(const std::string& full_name) { |
| 50 | pthread_once(&s_init_handler_map_once, init_handler_map); |
| 51 | MessageHandler* handler = s_handler_map->seek(full_name); |
| 52 | if (handler != NULL) { |
| 53 | return *handler; |
| 54 | } |
| 55 | MessageHandler null_handler = { NULL, NULL, NULL, NULL }; |
| 56 | return null_handler; |
| 57 | } |
| 58 | |
| 59 | } // namespace mcpack2pb |
no test coverage detected