protected:
// Handler
- _HandlerType m_handle;
+ //_HandlerType m_handle;
+ shared_handle<_Impl> m_handle;
protected:
// Handler Check
// Close
void close(){
+ /* 2012/05/18 myun2 Close by shared_handle.
+
if ( m_handle != _Impl::invalid_handle )
{
_Impl::close(m_handle);
m_handle = _Impl::invalid_handle;
}
+ */
}
////////////////////////////////////////////////////
holder *m_pholder;
public:
shared_handle(const handler_type& hndl) : m_pholder(new holder(hndl)){ m_pholder->up(); }
+ shared_handle(const shared_handle& from) : m_pholder(from.m_pholder){ m_pholder->up(); }
virtual ~shared_handle(){ m_pholder->down(); }
/////////////////////////////////////////////////////