Changeset 1838 for trunk/dll/init.c


Ignore:
Timestamp:
Aug 3, 2015, 12:14:21 AM (10 years ago)
Author:
Gregg Young
Message:

Serialize local hard drive scanning to reduce drive thrashing continue to scan all other drive types in separate threads. Ticket [561] Remove unneed SubbyScan code and improve suppression of blank lines and duplicate subdirectory name caused by running Stubby in worker threads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r1830 r1838  
    131131  30 Aug 14 GKY Add semaphore hmtxFiltering to prevent freeing dcd while filtering. Prevents
    132132                a trap when FM2 is shutdown while directory containers are still populating
     133  02 Aug 15 GKY Serialize local hard drive scanning to reduce drive thrashing continue to scan
     134                all other drive types in separate threads.
    133135
    134136***********************************************************************/
     
    233235HMTX hmtxFM2Globals;
    234236HMTX hmtxScanning;
     237HMTX hmtxScanningLocalHD;
     238HMTX hmtxScanningLocal;
    235239HMTX hmtxFiltering;
    236240HEV  hevTreeCnrScanComplete;
     
    11651169  if (DosCreateMutexSem(NULL, &hmtxScanning, 0L, TRUE))
    11661170    Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
     1171              PCSZ_DOSCREATEMUTEXSEM);
     1172  if (DosCreateMutexSem(NULL, &hmtxScanningLocalHD, 0L, FALSE))
     1173    Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
     1174              PCSZ_DOSCREATEMUTEXSEM);
     1175    if (DosCreateMutexSem(NULL, &hmtxScanningLocal, 0L, FALSE))
     1176    Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
    11671177              PCSZ_DOSCREATEMUTEXSEM);
    11681178  if (DosCreateMutexSem(NULL, &hmtxFM2Delete, 0L, FALSE))
Note: See TracChangeset for help on using the changeset viewer.