[前][次][番号順一覧][スレッド一覧]

ruby-changes:20394

From: kosaki <ko1@a...>
Date: Fri, 8 Jul 2011 10:41:05 +0900 (JST)
Subject: [ruby-changes:20394] kosaki:r32442 (trunk): * thread_pthread.c (gvl_destroy): fix cond_t leak.

kosaki	2011-07-08 10:40:54 +0900 (Fri, 08 Jul 2011)

  New Revision: 32442

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32442

  Log:
    * thread_pthread.c (gvl_destroy): fix cond_t leak.

  Modified files:
    trunk/ChangeLog
    trunk/thread_pthread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32441)
+++ ChangeLog	(revision 32442)
@@ -1,3 +1,7 @@
+Fri Jul  8 10:39:52 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* thread_pthread.c (gvl_destroy): fix cond_t leak.
+
 Fri Jul  8 09:17:59 2011  Eric Hodel  <drbrain@s...>
 
 	* gc.c:  Improve documentation
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 32441)
+++ thread_pthread.c	(revision 32442)
@@ -148,6 +148,9 @@
 static void
 gvl_destroy(rb_vm_t *vm)
 {
+    native_cond_destroy(&vm->gvl.switch_wait_cond);
+    native_cond_destroy(&vm->gvl.switch_cond);
+    native_cond_destroy(&vm->gvl.cond);
     native_mutex_destroy(&vm->gvl.lock);
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]