From ccfedba8b4cebf9285189c5d21f7cb008235d6b2 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 18 Jan 2008 06:57:08 +0000 Subject: * thread.c (thread_cleanup_func): ignore errors from destroying mutex of dead thread. [ruby-core:15069] * thread_pthread.c, thread_win32.c (native_thread_destroy): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_win32.c | 1 + 1 file changed, 1 insertion(+) (limited to 'thread_win32.c') diff --git a/thread_win32.c b/thread_win32.c index 7c4f402d1..7680a226e 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -418,6 +418,7 @@ static void native_thread_destroy(rb_thread_t *th) { HANDLE intr = th->native_thread_data.interrupt_event; + native_mutex_destroy(&th->interrupt_lock); thread_debug("close handle - intr: %p, thid: %p\n", intr, th->thread_id); th->native_thread_data.interrupt_event = 0; w32_close_handle(intr); -- cgit