Browse thread
Has the thread cancellation problem evolved ?
[
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: | Lionel Elie Mamane <lionel@m...> |
| Subject: | Re: [Caml-list] Has the thread cancellation problem evolved ? |
On Tue, Aug 28, 2007 at 11:12:40AM -0400, Brian Hurt wrote: > Robert Fischer wrote: >> Brian Hurt wrote: > Until you get someone "clever", who does something like (in Ocaml): > let rec do_my_work () = > try > do_a_bunch_of_work () > with > | Thread_abort_exception -> > (* Ack! Someone tried to kill me! I refuse to die! *) > do_my_work () > ;; > I suppose eventually you'd blow stack. Nah, that recursion is a tail recursion, so stack use doesn't grow :) -- Lionel