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

ruby-changes:24949

From: kosaki <ko1@a...>
Date: Thu, 20 Sep 2012 23:16:30 +0900 (JST)
Subject: [ruby-changes:24949] kosaki:r37001 (trunk): * thread_pthread.c (native_cond_initialize): destroy condattr

kosaki	2012-09-20 23:16:02 +0900 (Thu, 20 Sep 2012)

  New Revision: 37001

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

  Log:
    * thread_pthread.c (native_cond_initialize): destroy condattr
      after using it. Patch by Stanislav Sedov. Thank you.
      [Bug #7041] [ruby-core:47619]

  Modified files:
    trunk/ChangeLog
    trunk/thread_pthread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37000)
+++ ChangeLog	(revision 37001)
@@ -1,3 +1,9 @@
+Thu Sep 20 23:05:11 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* thread_pthread.c (native_cond_initialize): destroy condattr
+	  after using it. Patch by Stanislav Sedov. Thank you.
+	  [Bug #7041] [ruby-core:47619]
+
 Thu Sep 20 22:53:02 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* thread_pthread.c (native_cond_initialize): clean up #ifdef condition.
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 37000)
+++ thread_pthread.c	(revision 37001)
@@ -263,6 +263,7 @@
     }
 
     r = pthread_cond_init(&cond->cond, &attr);
+    pthread_condattr_destroy(&attr);
 # else
     r = pthread_cond_init(&cond->cond, NULL);
 # endif

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

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