Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] newby using Thread on windows (different than linux)...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-03-07 (09:21)
From: mattwb@v...
Subject: Re: [Caml-list] newby using Thread on windows (different than linux)...

>This script works on my debian/testing server but will bomb out on windows
>nt running ocaml 3.04.  It bombs out at the first Thread.delay statement,
>quietly and without error...

The problem is on +ocaml-3.04/otherlibs/systhreads/
Line 54:

     let preempt signal = yield()

Can be changed to 

    let preempt signal = 
      if not (!Sys.interactive && signal=(-11)) then

On the surface, this appears to work, but I cannot guarantee that
this will not cause any negative consequences in other situations.
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: