Changeset 1303 for trunk/dll/grep.c
- Timestamp:
- Nov 30, 2008, 6:31:35 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/grep.c
r1223 r1303 29 29 07 Feb 08 SHL Use ITIMER_DESC to control sleeps and reporting 30 30 29 Feb 08 GKY Use xfree where appropriate 31 29 Nov 08 GKY Remove or replace with a mutex semaphore DosEnterCriSec where appropriate. 31 32 32 33 ***********************************************************************/ … … 62 63 #include "misc.h" // PostMsg 63 64 #include "fortify.h" 65 #include "init.h" // Golbal semaphore 64 66 65 67 static VOID DoAllSubdirs(GREP *grep, … … 743 745 CM_INSERTRECORD, MPFROMP(pciFirst), MPFROMP(&ri)); 744 746 if (dcd) { 745 DosEnterCritSec(); 747 //DosEnterCritSec(); //GKY 11-29-08 748 DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT); 746 749 dcd->ullTotalBytes += grep->insertedbytes; 747 DosExitCritSec(); 750 DosReleaseMutexSem(hmtxFM2Globals); 751 //DosExitCritSec(); 748 752 } 749 753 SleepIfNeeded(pitdSleep, 1);
Note:
See TracChangeset
for help on using the changeset viewer.