Changeset 77 for trunk/src/kernel/qeventloop_pm.cpp
- Timestamp:
- Apr 2, 2006, 12:41:47 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel/qeventloop_pm.cpp
r8 r77 51 51 extern bool qt_pmEventFilter( QMSG* msg, MRESULT &result ); 52 52 53 #if !defined (QT_NO_SESSIONMANAGER) 54 extern bool qt_app_canQuit(); // defined in qapplication_pm.cpp 55 #endif 56 53 57 static HAB qt_gui_hab = 0; 54 58 static HMQ qt_gui_queue = 0; 55 //@@TODO (dmik): later 56 //// Simpler timers are needed when Qt does not have the event loop, 57 //// such as for plugins. 59 60 /// @todo (dmik) later 61 // Simpler timers are needed when Qt does not have the event loop, 62 // such as for plugins. 58 63 //#ifndef Q_OS_TEMP 59 64 //Q_EXPORT bool qt_win_use_simple_timers = TRUE; … … 433 438 // recursive mutex to serialize access to socket notifier data 434 439 static QMutex ss_mutex( TRUE ); 435 // flag to indicate apresence of sockets to do select() (we use QSemaphore440 // flag to indicate the presence of sockets to do select() (we use QSemaphore 436 441 // instead of QWaitCondition because we need the "level-triggered" semantics, 437 // the "edge-triggered" onecan produce deadlocks)442 // the "edge-triggered" semantics can produce deadlocks) 438 443 static QSemaphore ss_flag( 1 ); 439 444 … … 786 791 locker.mutex()->unlock(); 787 792 #endif // QT_THREAD_SUPPORT 788 if ( !WinGetMsg( 0, &msg, 0, 0, 0 ) ) { 793 if ( !WinGetMsg( 0, &msg, 0, 0, 0 ) ) { // WM_QUIT received 794 #if !defined (QT_NO_SESSIONMANAGER) 795 if ( qt_app_canQuit() ) { 796 #endif 789 797 #ifdef QT_THREAD_SUPPORT 790 locker.mutex()->lock(); 791 #endif // QT_THREAD_SUPPORT 792 exit( 0 ); // WM_QUIT received 793 return FALSE; 798 locker.mutex()->lock(); 799 #endif // QT_THREAD_SUPPORT 800 exit( 0 ); 801 return FALSE; 802 #if !defined (QT_NO_SESSIONMANAGER) 803 } else { 804 WinCancelShutdown( d->hmq, FALSE ); 805 } 806 #endif 794 807 } 795 808 #ifdef QT_THREAD_SUPPORT
Note:
See TracChangeset
for help on using the changeset viewer.