QMUTEX_INLINEP FX::QMutex::~QMutex (  ) 

Definition at line 559 of file int_QMutexImpl.h.

References FXDELETE, FXEXCEPTIONDESTRUCT1, FXEXCEPTIONDESTRUCT2, FX::QMutexImpl::waitObjectCache, FX::QMutexPrivate::wc, and FX::QMutexImpl::KernelWaitObjectCache::Entry::wo.

00560 { FXEXCEPTIONDESTRUCT1 {
00561     if(p)
00562     {   // Force exception if something else uses us after now
00563         QMutexPrivate *_p=p;
00564         p=0;
00565 #ifndef FXDISABLE_THREADS
00566 #ifdef USE_OURMUTEX
00567 #ifdef USE_WINAPI
00568         if(_p->wc && _p->wc->wo)
00569         {
00570             FXERRHWIN(ResetEvent(_p->wc->wo));
00571             QMutexImpl::waitObjectCache.addFreed(_p->wc);
00572             _p->wc=0;
00573         }
00574 #endif
00575 #ifdef USE_POSIX
00576         if(_p->sema)
00577         {
00578             QMutexImpl::waitObjectCache.addFreed(_p->sema);
00579             _p->sema=0;
00580         }
00581 #endif
00582 #elif defined(USE_POSIX)
00583         if(_p->m)
00584         {
00585             QMutexImpl::waitObjectCache.addFreed(_p->m);
00586             p->m=0;
00587         }
00588 #endif
00589 #endif
00590         FXDELETE(_p);
00591     }
00592 } FXEXCEPTIONDESTRUCT2; }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:45 2009 for TnFOX by doxygen v1.4.7