Changeset 1460 for trunk/dll/strutil.c


Ignore:
Timestamp:
Sep 19, 2009, 11:11:12 PM (16 years ago)
Author:
Gregg Young
Message:

Make GetPString more SMP safe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/strutil.c

    r1394 r1460  
    1313  05 Jan 08 SHL Rename from string.c to avoid string.h conflict
    1414  03 Feb 09 SHL Switch to STRINGTABLE and const return
     15  19 Sep 09 GKY Make GetPString more SMP safe
    1516
    1617***********************************************************************/
     
    9798  // SMPSafeInc();
    9899  for (c = 0; ; c++) {
    99     if (++cBusy == 1)
     100    if (SMPSafeInc(), cBusy == 1)
    100101      break;
    101     cBusy--;
     102    SMPSafeDec();
    102103    // Hold off 1 cycle before reporting since some contention expected
    103104    if (c == 1)
Note: See TracChangeset for help on using the changeset viewer.