Changeset 136 for trunk/src/kernel/qthread_pm.cpp
- Timestamp:
- Oct 18, 2006, 11:58:35 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel/qthread_pm.cpp
r125 r136 39 39 40 40 #include "qt_os2.h" 41 42 #if !defined(QT_PM_NO_SYSEXCEPTIONS) 43 extern // defined in qsysxcpt_pm.cpp 44 ULONG APIENTRY qt_exceptionHandler( PEXCEPTIONREPORTRECORD pReportRec, 45 PEXCEPTIONREGISTRATIONRECORD pRegRec, 46 PCONTEXTRECORD pContextRec, 47 PVOID pv ); 48 extern ERR qt_libcExceptionHandler; // defined in qapplication_pm.cpp 49 #endif 41 50 42 51 #include "qthread.h" … … 106 115 LocalStorage = arg [1]; 107 116 117 #if !defined(QT_PM_NO_SYSEXCEPTIONS) 118 // don't set the exception handler if not able to do it for main thread 119 bool setException = qt_libcExceptionHandler != NULL; 120 EXCEPTIONREGISTRATIONRECORD excRegRec = { 0, qt_exceptionHandler }; 121 if ( setException ) 122 DosSetExceptionHandler( &excRegRec ); 123 #endif 124 108 125 ( (QThread *) arg[0] )->run(); 109 126 110 127 finish( (QThreadInstance *) arg[1] ); 111 128 129 #if !defined(QT_PM_NO_SYSEXCEPTIONS) 130 if ( setException ) 131 DosUnsetExceptionHandler( &excRegRec ); 132 #endif 133 112 134 return; 113 135 }
Note:
See TracChangeset
for help on using the changeset viewer.