Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QCoreApplication::~QCoreApplication (  ) 

Destroys the QCoreApplication object.

Definition at line 504 of file qcoreapplication.cpp.

References QThread::cleanup(), QAbstractEventDispatcher::closingDown(), QThreadPool::globalInstance(), and QThreadPool::waitForDone().

{
    qt_call_post_routines();

    self = 0;
    QCoreApplicationPrivate::is_app_closing = true;
    QCoreApplicationPrivate::is_app_running = false;

#if !defined(QT_NO_THREAD)
#if !defined(QT_NO_CONCURRENT)
    // Synchronize and stop the global thread pool threads.
    QThreadPool::globalInstance()->waitForDone();
#endif
    QThread::cleanup();
#endif

    d_func()->threadData->eventDispatcher = 0;
    if (QCoreApplicationPrivate::eventDispatcher)
        QCoreApplicationPrivate::eventDispatcher->closingDown();
    QCoreApplicationPrivate::eventDispatcher = 0;

#ifndef QT_NO_LIBRARY
    delete coreappdata()->app_libpaths;
    coreappdata()->app_libpaths = 0;
#endif
}


Generated by  Doxygen 1.6.0   Back to index