Changeset 806 for trunk/src/corelib/io


Ignore:
Timestamp:
Oct 26, 2010, 1:27:02 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

corelib: Addition to r805 (remove extra wait() calls).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/io/qfilesystemwatcher_os2.cpp

    r805 r806  
    5757// is normally the Workplace Shell so there is no way for other applications
    5858// to use this handy API. In order to overcome this limitation, XWorkplace
    59 // (which is a Workplace Shell extension which lives in the same process)
     59// ()
    6060// takes over the WPS change notification function and extends it by sinking
    6161// all changes to a named pipe. This pipe is utilized by this class to get
     
    205205        isRunning = false;
    206206        DosPostEventSem(eventSem);
    207         locker.unlock();
    208         wait();
    209207    }
    210208
     
    225223        qDosNI(arc = DosWaitEventSem(eventSem, SEM_INDEFINITE_WAIT));
    226224        locker.relock();
    227        
     225
    228226        if (!isRunning)
    229227            break;
     
    319317        isRunning = false;
    320318        DosPostEventSem(eventSem);
    321         locker.unlock();
    322         wait();
     319        // note: the caller of stop() will wait() if necessary
    323320    }
    324321}
Note: See TracChangeset for help on using the changeset viewer.