|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Functions | |
| template<typename Map , typename Key , typename CreateFn > | |
| auto | get_or_create (Map &map, std::shared_mutex &mutex, const Key &key, CreateFn create_fn) -> typename std::remove_reference< decltype(*map.begin() ->second)>::type * |
| template<typename Map , typename Key , typename CreateFn , typename InitFn > | |
| auto | get_or_create_with_init (Map &map, std::shared_mutex &mutex, const Key &key, CreateFn create_fn, InitFn init_fn) -> typename std::remove_reference< decltype(*map.begin() ->second)>::type * |
| template<typename Map , typename Key , typename CreateFn , typename UpdateFn > | |
| auto | get_or_create_and_update (Map &map, std::shared_mutex &mutex, const Key &key, CreateFn create_fn, UpdateFn update_fn) -> decltype(update_fn(*map.begin() ->second)) |
| auto kcenon::monitoring::hot_path::get_or_create | ( | Map & | map, |
| std::shared_mutex & | mutex, | ||
| const Key & | key, | ||
| CreateFn | create_fn ) -> typename std::remove_reference<decltype(*map.begin()->second)>::type* |
Definition at line 69 of file hot_path_helper.h.
Referenced by get_or_create_and_update(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

| auto kcenon::monitoring::hot_path::get_or_create_and_update | ( | Map & | map, |
| std::shared_mutex & | mutex, | ||
| const Key & | key, | ||
| CreateFn | create_fn, | ||
| UpdateFn | update_fn ) -> decltype(update_fn(*map.begin()->second)) |
Definition at line 204 of file hot_path_helper.h.
References get_or_create().
Referenced by TEST_F(), and TEST_F().


| auto kcenon::monitoring::hot_path::get_or_create_with_init | ( | Map & | map, |
| std::shared_mutex & | mutex, | ||
| const Key & | key, | ||
| CreateFn | create_fn, | ||
| InitFn | init_fn ) -> typename std::remove_reference<decltype(*map.begin()->second)>::type* |
Definition at line 135 of file hot_path_helper.h.
Referenced by TEST_F(), and TEST_F().
