Changeset 1303 for trunk/dll/grep.c


Ignore:
Timestamp:
Nov 30, 2008, 6:31:35 AM (17 years ago)
Author:
Gregg Young
Message:

Last part of remove or replace with a mutex semaphore DosEnterCriSec where appropriate. (Ticket 308) Note the partial commits for this ticket won't build without this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/grep.c

    r1223 r1303  
    2929  07 Feb 08 SHL Use ITIMER_DESC to control sleeps and reporting
    3030  29 Feb 08 GKY Use xfree where appropriate
     31  29 Nov 08 GKY Remove or replace with a mutex semaphore DosEnterCriSec where appropriate.
    3132
    3233***********************************************************************/
     
    6263#include "misc.h"                       // PostMsg
    6364#include "fortify.h"
     65#include "init.h"                       // Golbal semaphore
    6466
    6567static VOID DoAllSubdirs(GREP *grep,
     
    743745               CM_INSERTRECORD, MPFROMP(pciFirst), MPFROMP(&ri));
    744746    if (dcd) {
    745       DosEnterCritSec();
     747      //DosEnterCritSec(); //GKY 11-29-08
     748      DosRequestMutexSem(hmtxFM2Globals, SEM_INDEFINITE_WAIT);
    746749      dcd->ullTotalBytes += grep->insertedbytes;
    747       DosExitCritSec();
     750      DosReleaseMutexSem(hmtxFM2Globals);
     751      //DosExitCritSec();
    748752    }
    749753    SleepIfNeeded(pitdSleep, 1);
Note: See TracChangeset for help on using the changeset viewer.