summaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-18 06:57:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-18 06:57:08 +0000
commitccfedba8b4cebf9285189c5d21f7cb008235d6b2 (patch)
tree8b3c67f1abe3bd3563c89bfd05b5b20d484aa0db /thread_pthread.c
parent3bbf7f9a7b64e2088ac159a87b700d7a20e6b6e4 (diff)
downloadruby-ccfedba8b4cebf9285189c5d21f7cb008235d6b2.tar.gz
ruby-ccfedba8b4cebf9285189c5d21f7cb008235d6b2.tar.xz
ruby-ccfedba8b4cebf9285189c5d21f7cb008235d6b2.zip
* 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
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 202dc54fe..62bddb722 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -13,7 +13,6 @@
static void native_mutex_lock(pthread_mutex_t *lock);
static void native_mutex_unlock(pthread_mutex_t *lock);
-static void native_mutex_destroy(pthread_mutex_t *lock);
static int native_mutex_trylock(pthread_mutex_t *lock);
static void native_mutex_initialize(pthread_mutex_t *lock);
static void native_mutex_destroy(pthread_mutex_t *lock);
@@ -156,6 +155,7 @@ Init_native_thread(void)
static void
native_thread_destroy(rb_thread_t *th)
{
+ pthread_mutex_destroy(&th->interrupt_lock);
pthread_cond_destroy(&th->native_thread_data.sleep_cond);
}