Changeset 790 for trunk/dll/comp.c


Ignore:
Timestamp:
Aug 20, 2007, 6:54:43 PM (18 years ago)
Author:
Steven Levine
Message:

Correct remaining pcil/pcir typos (we hope)
Revert to DosSleep(0)
Use GetMSecTimer for timing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/comp.c

    r783 r790  
    3333  13 Aug 07 SHL Sync code with other FilesToGet usage
    3434  13 Aug 07 SHL Move #pragma alloc_text to end for OpenWatcom compat
     35  20 Aug 07 SHL Correct remaining pcil/pcir typos (we hope)
     36  20 Aug 07 SHL Revert to DosSleep(0)
     37  20 Aug 07 SHL Use GetMSecTimer for timing
    3538
    3639***********************************************************************/
     
    841844  HMQ hmq;
    842845  BOOL notified = FALSE;
     846
     847  ULONG lastMSec = GetMSecTimer();
     848  ULONG ul;
    843849
    844850  HWND hwndLeft, hwndRight;
     
    11941200            pcir->crtime.minutes = filesr[r]->crtime.minutes;
    11951201            pcir->crtime.hours = filesr[r]->crtime.hours;
    1196             if (~pcil->rc.flRecordAttr & CRA_FILTERED &&
     1202            // Bypass check if already filtered on left side
     1203            if (~pcir->rc.flRecordAttr & CRA_FILTERED &&
    11971204                *cmp->dcd.mask.szMask) {
    11981205              if (!Filter((PMINIRECORDCORE)pcir, (PVOID)&cmp->dcd.mask)) {
     
    13021309            pcil->pszSubject = NullStr;
    13031310          if (!pcir->pszSubject)
    1304             pcil->pszSubject = NullStr;
     1311            pcir->pszSubject = NullStr;
    13051312
    13061313          if (!pcil->pszDispAttr)
    13071314            pcil->pszDispAttr = NullStr;
    13081315          if (!pcir->pszDispAttr)
    1309             pcil->pszDispAttr = NullStr;
    1310 
    1311           // fixme to be time based - every 2 sec should be OK
     1316            pcir->pszDispAttr = NullStr;
     1317
     1318#if 0                                   // 20 Aug 07 SHL fixme to be gone
    13121319          if (!(cntr % 500))
    13131320            DosSleep(1);
    13141321          else if (!(cntr % 50))
    1315             DosSleep(1);
    1316 
     1322            DosSleep(0);
    13171323          cntr++;
     1324#else
     1325          if ((cntr++ % 500) == 0) {
     1326            ul = GetMSecTimer();
     1327            if (ul - lastMSec >= 1000) {
     1328              lastMSec = ul;
     1329              DosSleep(1);
     1330            }
     1331          }
     1332#endif
    13181333
    13191334          pcil = (PCNRITEM) pcil->rc.preccNextRecord;
     
    24402455              TileChildren(cmp->hwndParent, TRUE);
    24412456            }
    2442             DosSleep(32); // 05 Aug 07 GKY 64
     2457            DosSleep(32);               // 05 Aug 07 GKY 64
    24432458            PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(COMP_COLLECT, 0), MPVOID);
    24442459            break;
Note: See TracChangeset for help on using the changeset viewer.