Date: 2001-06-27 11:15:07
pdimov_at_[hidden] (Peter Dimov) wrote:
> From: <duncan_at_[hidden]>
> > Surely if the id is just a Win32 HANDLE then you have a leakage
> > problem?
> Sorry, I now see that what I said could be (mis)interpreted that way.
> What I had in mind was a HANDLE wrapper that calls DuplicateHandle()
> on copy and CloseHandle() on destruction.
If you did that then the pthreads version would have to reference count
to preserve the same semantics. So may as well reference count them
both, which may well be quicker than DuplicateHandle() anyhow.
-- Duncan Harris, Sapio Design Ltd, Manchester, U.K.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk