&m_dwId );
}
- bool release(thread_handle_t h)
+ void release(thread_handle_t h)
{
- return ( ::CloseHandle((HANDLE)h) == TRUE ? true : false );
+ //return ( ::CloseHandle((HANDLE)h) == TRUE ? true : false );
+ if ( ::CloseHandle(h) != TRUE )
+ throw thread_exception("windows::thread_impl::close(): ::CloseHandle() was failed.");
}
bool join(thread_handle_t h, unsigned int timeout_ms)