MCPcopy Create free account
hub / github.com/Icinga/icinga2 / HasExceptions

Method HasExceptions

lib/base/workqueue.cpp:155–160  ·  view source on GitHub ↗

* Checks whether any exceptions have occurred while executing tasks for this * work queue. When a custom exception callback is set this method will always * return false. */

Source from the content-addressed store, hash-verified

153 * return false.
154 */
155bool WorkQueue::HasExceptions() const
156{
157 std::unique_lock<std::mutex> lock(m_Mutex);
158
159 return !m_Exceptions.empty();
160}
161
162/**
163 * Returns all exceptions which have occurred for tasks in this work queue. When a

Callers 2

CommitNewItemsMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected