Changeset 195 for trunk/src/corelib
- Timestamp:
- Sep 26, 2009, 2:34:55 AM (16 years ago)
- Location:
- trunk/src/corelib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/corelib/global/qt_os2.h
r100 r195 69 69 #endif 70 70 71 72 73 74 75 76 77 71 78 #endif // defined(Q_CC_GNU) && defined(__INNOTEK_LIBC__) 72 79 -
trunk/src/corelib/io/qprocess_os2.cpp
r192 r195 332 332 do { 333 333 locker.unlock(); 334 arc = DosWaitEventSem(eventSem, SEM_INDEFINITE_WAIT);334 ); 335 335 locker.relock(); 336 336 if (finish) … … 941 941 } 942 942 } else { 943 APIRET arc = DosWaitEventSem(waitSem, (ULONG)timeout); 943 APIRET arc; 944 qDosNI(arc = DosWaitEventSem(waitSem, (ULONG)timeout)); 944 945 if (arc == ERROR_TIMEOUT) { 945 946 timedOut = true; … … 1035 1036 } 1036 1037 } else { 1037 APIRET arc = DosWaitEventSem(waitSem, (ULONG)timeout); 1038 APIRET arc; 1039 qDosNI(arc = DosWaitEventSem(waitSem, (ULONG)timeout)); 1038 1040 if (arc == ERROR_TIMEOUT) { 1039 1041 timedOut = true; … … 1132 1134 } 1133 1135 } else { 1134 APIRET arc = DosWaitEventSem(waitSem, (ULONG)timeout); 1136 APIRET arc; 1137 qDosNI(arc = DosWaitEventSem(waitSem, (ULONG)timeout)); 1135 1138 if (arc == ERROR_TIMEOUT) { 1136 1139 timedOut = true; -
trunk/src/corelib/thread/qmutex_os2.cpp
r176 r195 68 68 bool QMutexPrivate::wait(int timeout) 69 69 { 70 APIRET rc = DosWaitEventSem(sem, timeout < 0 ? SEM_INDEFINITE_WAIT : timeout); 70 APIRET rc; 71 qDosNI(rc = DosWaitEventSem(sem, timeout < 0 ? SEM_INDEFINITE_WAIT : timeout)); 71 72 switch (rc) { 72 73 case NO_ERROR: -
trunk/src/corelib/thread/qthread_os2.cpp
r81 r195 190 190 for (int i = 0; i < qt_adopted_thread_tids.size();) { 191 191 tid = qt_adopted_thread_tids.at(i); 192 rc = DosWaitThread(&tid, DCWW_NOWAIT);192 ); 193 193 if (rc != ERROR_THREAD_NOT_TERMINATED) { 194 194 if (rc == NO_ERROR || rc == ERROR_INVALID_THREADID) { … … 206 206 qt_adopted_thread_watcher_mutex.unlock(); 207 207 208 rc = DosWaitEventSem(qt_adopted_thread_wakeup, 300);208 ); 209 209 if (rc != NO_ERROR && rc != ERROR_TIMEOUT) { 210 210 qWarning("qt_adopted_thread_watcher_function: DosWaitEventSem returned %lu", rc); … … 437 437 APIRET rc = NO_ERROR; 438 438 if (time == ULONG_MAX) { 439 rc = DosWaitThread(&tid, DCWW_WAIT);439 ); 440 440 } else { 441 441 ULONG sleep; … … 447 447 sleep = time > THREAD_WAIT_INTERVAL ? THREAD_WAIT_INTERVAL : time; 448 448 DosSleep(sleep); 449 rc = DosWaitThread(&tid, DCWW_NOWAIT);449 ); 450 450 if (rc != ERROR_THREAD_NOT_TERMINATED) 451 451 break; -
trunk/src/corelib/thread/qwaitcondition_os2.cpp
r66 r195 118 118 // wait for the event 119 119 bool ret = false; 120 APIRET rc = DosWaitEventSem(wce->event, time); 120 APIRET rc; 121 qDosNI(rc = DosWaitEventSem(wce->event, time)); 121 122 if (rc == NO_ERROR) 122 123 ret = true;
Note:
See TracChangeset
for help on using the changeset viewer.