From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-06-27 11:28:37
> > 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.
Yes, reference counting the HANDLE as well is also possible; this is up to
the implementor of the Win32 thread library. The semantics are important.
-- 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