MCPcopy Create free account
hub / github.com/KDAB/GammaRay / isValidObject

Function isValidObject

core/probe.h:207–212  ·  view source on GitHub ↗

! * Check whether @p obj is still valid. * * @note The objectLock must be locked when this is called! */

Source from the content-addressed store, hash-verified

205 * @note The objectLock must be locked when this is called!
206 */
207 bool isValidObject(const QObject *obj) const
208 {
209 /// TODO: can we somehow assert(s_lock().isLocked()) ?!
210 /// -> Not with a recursive mutex. Make it non-recursive, and you can do Q_ASSERT(!s_lock().tryLock());
211 return m_validObjects.contains(obj);
212 }
213
214 /*!
215 * Determines if the specified QObject belongs to the GammaRay Probe or Window.

Callers 2

eventFilterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected