Changeset 2103 for trunk/Cbc/src


Ignore:
Timestamp:
Dec 29, 2014 3:37:56 PM (5 years ago)
Author:
tkr
Message:

Fix for missing usleep with MSVC. See r2004 in Clp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcNode.cpp

    r2100 r2103  
    77// Turn off compiler warning about long names
    88#  pragma warning(disable:4786)
     9#include <windows.h> // for Sleep()
     10#ifdef small
     11#undef small
     12#endif
     13#else
     14#include <unistd.h> // for usleep()
    915#endif
    1016
     
    47274733      }
    47284734      if (!threadStatus) {
     4735#ifdef _MSC_VER
     4736        Sleep(1);
     4737#else
    47294738        usleep(1000);
     4739#endif
    47304740        continue;
    47314741      }
     
    48604870    }
    48614871    if (!threadStatus) {
    4862       usleep(1000);
     4872#ifdef _MSC_VER
     4873        Sleep(1);
     4874#else
     4875        usleep(1000);
     4876#endif
    48634877      continue;
    48644878    }
Note: See TracChangeset for help on using the changeset viewer.