summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-20 15:20:17 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-20 15:20:17 +0000
commit1ff6a1953cafbec8ec93fe07112599f59c7cb873 (patch)
tree804f735fd5dc34718936f8f2500d3b6888bfeb3b /thread.c
parent49fbf28b4579e15676e7371e4734f32d6392a0f4 (diff)
* 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
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thread.c b/thread.c
index c46a5bc445..dbe837fcce 100644
--- a/thread.c
+++ b/thread.c
@@ -406,6 +406,7 @@ thread_cleanup_func(void *th_ptr, int atfork)
if (atfork)
return;
+ native_mutex_destroy(&th->interrupt_lock);
native_thread_destroy(th);
}