Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-08-23 06:29:21


From: "Alexander Terekhov" <terekhov_at_[hidden]>
> > Opinions? This behavior (with one minor exception) is
> > implementable now, at least on paper.
>
> why not simply adopt POSIX model with respect to
> pthread_exit/cancel/testcancel/setcancelstate/type
> etc.. using "exit"/"cancel" exceptions? e.g.
>
>
http://tru64unix.compaq.com/docs/base_doc/DOCUMENTATION/V51_PDF/ARH9RBTE.PDF
>
> (your proposal does not match POSIX model)

Why? My proposal doesn't have setcancelstate/type, but AFAICS it matches the
semantics described in 2-19 assuming that all threads are synchronously
cancelable by default.

--
Peter Dimov
Multi Media Ltd.

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