[m-rev.] for review: bootstrap with MSVC as C compiler.

Ralph Becket rafe at cs.mu.OZ.AU
Fri Oct 25 09:17:10 AEST 2002


On 24-Oct-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> 
> diff -u trace/mercury_trace_source.c trace/mercury_trace_source.c
> --- trace/mercury_trace_source.c
> +++ trace/mercury_trace_source.c
> @@ -344,10 +344,17 @@
>  		*/
>  #ifdef MR_HAVE_SLEEP
>  		sleep(1);
> -#else
> +#elif MR_HAVE_CAPITAL_S_SLEEP
>  		Sleep(1000);
> +#else
> +        /*
> +        ** busy-wait for a few billion cycles, which should hopefully
> +        ** take a second or more.
> +        */
> +        volatile int i;
> +        for (i = 0; i < 100000000; i++)

One billion = 1000000000.

- Ralph
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list