ruby-changes:11568
From: nobu <ko1@a...>
Date: Sat, 18 Apr 2009 19:45:08 +0900 (JST)
Subject: [ruby-changes:11568] Ruby:r23202 (ruby_1_8): * eval.c (safe_mutex_lock): pthread_cleanup_push() must not be
nobu 2009-04-18 19:44:55 +0900 (Sat, 18 Apr 2009) New Revision: 23202 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23202 Log: * eval.c (safe_mutex_lock): pthread_cleanup_push() must not be inside parens. Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/eval.c Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 23201) +++ ruby_1_8/ChangeLog (revision 23202) @@ -1,3 +1,8 @@ +Sat Apr 18 19:44:53 2009 Nobuyoshi Nakada <nobu@r...> + + * eval.c (safe_mutex_lock): pthread_cleanup_push() must not be + inside parens. + Sat Apr 18 18:25:53 2009 Nobuyoshi Nakada <nobu@r...> * eval.c (rb_thread_remove): stops timer thread unless other Index: ruby_1_8/eval.c =================================================================== --- ruby_1_8/eval.c (revision 23201) +++ ruby_1_8/eval.c (revision 23202) @@ -12383,8 +12383,8 @@ } time_thread = {PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER}; #define safe_mutex_lock(lock) \ - (pthread_mutex_lock(lock), \ - pthread_cleanup_push((void (*)_((void *)))pthread_mutex_unlock, lock)) + pthread_mutex_lock(lock); \ + pthread_cleanup_push((void (*)_((void *)))pthread_mutex_unlock, lock) static void* thread_timer(dummy) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/