Boost logo

Boost :

From: Matthew Hurd (matt_at_[hidden])
Date: 2004-02-06 22:23:26


> On Behalf Of Slawomir Lisznianski
> Subject: [boost] thread cancellation
>
> Boost library, in general, is often appreciated for its minimal, yet
> complete and portable implementations of various concepts.
> Considering that thread cancellation, along with other thread control
> methods such as stop, resume, suspend etc, is either purposefully not
> supported or made deprecated in other libraries, including Java threads
> (forgive me for daring to leave C++ realm), wouldn't it be wise not to
> include such feature at all?
>
> Slawomir Lisznianski; [ www.rhapsodia.org ]

I think I agree, but I'm uncertain.

Overcoming problem with cancellation and exceptions is a big issue.

David Abrahams is rightfully very pedantic about this and once he is happy
with the exception model and others are happy with the cancellation
mechanism I think there might be a way forward.

Meanwhile, just think of cancellation as poor design ;-) I haven't written
a program that cancels a thread for quite a while, though I would have liked
to, but have always preferred a different design to the problem.

I do need to set thread priorities however. This is more important to me
than cancellation.

Matt Hurd.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk