Empty the errorStack.
| 66 | |
| 67 | // Empty the errorStack. |
| 68 | void clear() noexcept final |
| 69 | { |
| 70 | try |
| 71 | { |
| 72 | // grab a lock so that there is no addition while clearing. |
| 73 | std::lock_guard<std::mutex> guard(mStackLock); |
| 74 | mErrorStack.clear(); |
| 75 | } |
| 76 | catch (const std::exception& e) |
| 77 | { |
| 78 | sample::gLogFatal << "Internal Error: " << e.what() << std::endl; |
| 79 | } |
| 80 | }; |
| 81 | |
| 82 | //! Simple helper function that |
| 83 | bool empty() const noexcept |
no outgoing calls
no test coverage detected