The instance of this specific manager This work as a shared pointer to avoid the static destruction of the manager even when a static function_hooker still wants to use it.
| 399 | // This work as a shared pointer to avoid the static destruction of the manager even when a static function_hooker |
| 400 | // still wants to use it. |
| 401 | static std::shared_ptr<function_hooker_manager> instance() |
| 402 | { |
| 403 | static auto fm_ptr = std::shared_ptr<function_hooker_manager>(new function_hooker_manager()); |
| 404 | return fm_ptr; |
| 405 | } |
| 406 | |
| 407 | }; |
| 408 |
nothing calls this directly
no outgoing calls
no test coverage detected