
18 Dec
2005
18 Dec
'05
5:31 a.m.
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@elewise.com)