Remove operation from pool.
- Parameters
-
| name | Name of the operation to remove |
- Returns
- true if removed, false if not found
Definition at line 182 of file OperationPool.hpp.
183 {
184 std::unique_lock lock(
m_mutex);
185
188 return false;
189 }
190
191 std::type_index type =
m_info[name].type;
192
195
198 }
199
200 return true;
201 }
std::shared_mutex m_mutex
std::unordered_map< std::string, PooledOperationInfo > m_info
std::unordered_map< std::string, OperationPtr > m_operations
std::function< void(const std::string &, std::type_index)> m_on_remove_callback
References m_info, m_mutex, m_on_remove_callback, and m_operations.