[Clp] Clp trunk - windows problem

Stefan Vigerske stefan at math.hu-berlin.de
Sat Aug 9 07:17:43 EDT 2014


Hi,

ok, it's now using Sleep(1) on Windows, i.e. wait 1 millisecond.
On other systems it's now usleep(100), which will wait 0.1 milliseconds 
- that should be the same as before.

Stefan

On 07/29/2014 01:56 PM, ycollette.nospam at free.fr wrote:
> Hello,
>
> I tried to compile Cbc / Clp trunk under windows with the intel compiler and I found a problem: there is no nanosleep function under windows.
>
> I found an equivalent function for windows: Sleep which take a number of milliseconds as argument.
>
> #ifdef _WINDOWS
> #include <windows.h>
> #else
> #include <unistd.h>
> #define Sleep(x) usleep((x)*1000)
> #endif
>
> Then use like this:
>
> Sleep(how_many_milliseconds);
>
> Best regards,
>
> YC
> _______________________________________________
> Clp mailing list
> Clp at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/clp
>



More information about the Clp mailing list