Boost logo

Boost :

From: Alex Besogonov (cyberax_at_[hidden])
Date: 2005-12-18 00:31:52


Christopher Kohlhoff wrote:
> The shared_ptr wrapping the socket is a workaround for Windows
> not behaving as MSDN says it should with respect to operation
> cancellation. I'd be *very* happy to find another efficient way
> to correctly indicate operation cancellation without requiring
> the allocation.
May be you can use intrusive_ptr and Windows's own reference counter for
handles (DuplicateHandle/CloseHandle)? This way you won't need to
allocate counter for shared_ptr.

-- 
With respect,
             Alex Besogonov (cyberax_at_[hidden])

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