From: nadji@noos.fr
To: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: [Caml-list] Native Threads
Date: Sun, 06 Oct 2002 13:12:47 +0200 [thread overview]
Message-ID: <3DA01AAF.14FD242C@noos.fr> (raw)
Hi,
I've just been playing with threads and I noticed at execution
time that Thread.kill is not implemented by the posix-compiled
version of the library. I used this flag because I thought that
it would be faster (please correct me if I'm wrong), and there
was no mention that Thread.kill would not be implemented.
By looking at the sources, I learned that the reason is
"problems with cleanup handlers on several platforms".
That's fine with me, but I would like to compile my
program :)
So, would it be easy to add a flag to the byte code compiler
to say that we want the full thread library ?
Or, is there a workaround to simulate Thread.kill, without
modifying the (function running as a)thread to kill (it could
be doing a long system call) ?
Or, does someone knows how to implement a function
timeout: float -> (unit->unit) -> unit
which executes the function given in argument , but
no more than a certain amount of time, without Thread.kill ?
TIA,
Nadji
-------------------
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
next reply other threads:[~2002-10-06 11:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-06 11:12 nadji [this message]
2002-10-06 11:35 ` Sven LUTHER
2002-10-06 14:34 ` Alessandro Baretta
2002-10-06 15:02 ` nadji
2002-10-13 8:43 ` Xavier Leroy
2002-10-13 9:04 ` Sven LUTHER
2002-10-13 10:42 ` Stefano Zacchiroli
2002-10-13 11:26 ` Sven LUTHER
2002-10-13 10:45 ` nadji
2002-10-13 15:21 ` Alessandro Baretta
2002-10-13 15:26 ` nadji
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DA01AAF.14FD242C@noos.fr \
--to=nadji@noos.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox