| 28 | |
| 29 | template <typename Function, typename... Args> |
| 30 | void SafeCall(Function && f, Args &&... functionArgs) |
| 31 | { |
| 32 | std::lock_guard<std::mutex> lock(m_mutex); |
| 33 | if (m_engine != nullptr) |
| 34 | (m_engine.get()->*f)(std::forward<Args>(functionArgs)...); |
| 35 | } |
| 36 | |
| 37 | template <typename Function, typename... Args> |
| 38 | dp::DrapeID SafeCallWithResult(Function && f, Args &&... functionArgs) |
no test coverage detected