English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
The best way to circumvent the lack of Thread.kill ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-11-02 (14:53)
From: David Teller <David.Teller@e...>
Subject: Re: [Caml-list] The best way to circumvent the lack of Thread.kill ?
 I would have figured that the best way to properly kill a thread would
be to have some form of channel (i.e. Events.t)-based communication
between threads -- and then killing the channel.

 Trouble is that, as I've just realized, there is no such facility as
killing/sending an exception through a channel. Does anyone know why ?


On Wed, 2005-11-02 at 10:52 +0100, Julien Narboux wrote:
> Hi,
> I just encountered the Thread.kill "not implemented" exception.