From 1ff6a1953cafbec8ec93fe07112599f59c7cb873 Mon Sep 17 00:00:00 2001 From: kosaki Date: Mon, 20 Dec 2010 15:20:17 +0000 Subject: * thread.c (thread_cleanup_func): Moved interrupted_lock destroying code from native_thread_destroy() to thread_cleanup_func() because it's platform independent logic. * thread_win32.c (native_thread_destroy): ditto. * thread_pthread.c (native_thread_destroy): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_win32.c | 1 - 1 file changed, 1 deletion(-) (limited to 'thread_win32.c') diff --git a/thread_win32.c b/thread_win32.c index 26516e4cf3..62ba5bbab5 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -511,7 +511,6 @@ static void native_thread_destroy(rb_thread_t *th) { HANDLE intr = InterlockedExchangePointer(&th->native_thread_data.interrupt_event, 0); - native_mutex_destroy(&th->interrupt_lock); thread_debug("close handle - intr: %p, thid: %p\n", intr, th->thread_id); w32_close_handle(intr); } -- cgit v1.2.3