Commit 510a813c authored by Dmitry Kazakov's avatar Dmitry Kazakov

Add debugging capabilities to KisAcyclicSignalConnector

parent c472f2aa
......@@ -162,6 +162,11 @@ void KisAcyclicSignalConnector::unlock()
}
}
bool KisAcyclicSignalConnector::isLocked() const
{
return m_signalsBlocked;
}
void KisAcyclicSignalConnector::coordinatedLock()
{
m_signalsBlocked++;
......
......@@ -124,6 +124,12 @@ public:
*/
void unlock();
/**
* \return true if the connector is locked by some signal or manually.
* Used for debugging purposes mostly.
*/
bool isLocked() const;
/**
* @brief create a coordinated connector that can be used for extending
* the number of self-locking connection.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment