Browse thread
[Caml-list] newby using Thread on windows (different than linux)...
-
Oliver George (Boyer)
- mattwb@v...
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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/thread_win32.ml
Line 54:
let preempt signal = yield()
Can be changed to
let preempt signal =
if not (!Sys.interactive && signal=(-11)) then
yield()
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 caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners