C++ (Qt)if (qobject_cast<QObject*>(ptr)) { //что то там есть }
C++ (Qt)while(!asleep()) sheep++;
void My_Delete(T** p){ mutex->lock(); delete *p; *p = NULL; mutex->unlock();}
QAtomicPointer<T> p;T* pT = p.fetchAndStoreRelaxed(NULL);delete pT;