mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add a way to test if the master lock is held by someone else.
This commit is contained in:
@@ -149,6 +149,13 @@ public:
|
||||
void run();
|
||||
void stop();
|
||||
void sweep();
|
||||
|
||||
#ifdef DEBUG
|
||||
void mustHaveMasterLock() { bool tl = mMasterLock.try_lock(); assert(tl); mMasterLock.unlock(); }
|
||||
#else
|
||||
void mustHaveMasterLock() { ; }
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
extern Application* theApp;
|
||||
|
||||
Reference in New Issue
Block a user