! * Check whether @p obj is still valid. * * @note The objectLock must be locked when this is called! */
| 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. |
no outgoing calls
no test coverage detected