From 13e5a8fb230f97bf5d107abf3fe723774760e910 Mon Sep 17 00:00:00 2001 From: myun2 Date: Thu, 12 Jul 2012 15:45:18 +0900 Subject: [PATCH] =?utf8?q?windows/thread=5Fimpl.hpp:=20release()=20?= =?utf8?q?=E3=81=AF=E5=BE=A9=E5=B8=B0=E5=80=A4=E3=82=92void=E5=9E=8B?= =?utf8?q?=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- roast/include/roast/windows/thread_impl.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roast/include/roast/windows/thread_impl.hpp b/roast/include/roast/windows/thread_impl.hpp index 177e7b9c..3b09e435 100644 --- a/roast/include/roast/windows/thread_impl.hpp +++ b/roast/include/roast/windows/thread_impl.hpp @@ -55,9 +55,11 @@ namespace roast &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) -- 2.11.0