ruby-changes:6729
From: mame <ko1@a...>
Date: Mon, 28 Jul 2008 20:19:07 +0900 (JST)
Subject: [ruby-changes:6729] Ruby:r18245 (trunk): * vm_core.h: move the definition of struct rb_mutex_struct.
mame 2008-07-28 20:17:43 +0900 (Mon, 28 Jul 2008) New Revision: 18245 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18245 Log: * vm_core.h: move the definition of struct rb_mutex_struct. * thread.c: ditto. Modified files: trunk/ChangeLog trunk/thread.c trunk/vm_core.h Index: ChangeLog =================================================================== --- ChangeLog (revision 18244) +++ ChangeLog (revision 18245) @@ -1,3 +1,9 @@ +Mon Jul 28 20:17:03 2008 Yusuke Endoh <mame@t...> + + * vm_core.h: move the definition of struct rb_mutex_struct. + + * thread.c: ditto. + Mon Jul 28 18:58:46 2008 Yusuke Endoh <mame@t...> * thread.c (mutex_unlock): fix typo. Index: vm_core.h =================================================================== --- vm_core.h (revision 18244) +++ vm_core.h (revision 18245) @@ -498,15 +498,6 @@ int abort_on_exception; }; -struct rb_mutex_struct -{ - rb_thread_lock_t lock; - rb_thread_cond_t cond; - struct rb_thread_struct volatile *th; - volatile int cond_waiting, cond_notified; - struct rb_mutex_struct *next_mutex; -}; - /* iseq.c */ VALUE rb_iseq_new(NODE*, VALUE, VALUE, VALUE, VALUE); VALUE rb_iseq_new_with_bopt(NODE*, VALUE, VALUE, VALUE, VALUE, VALUE); Index: thread.c =================================================================== --- thread.c (revision 18244) +++ thread.c (revision 18245) @@ -62,7 +62,14 @@ struct timeval rb_time_interval(VALUE); static int rb_thread_dead(rb_thread_t *th); -typedef struct rb_mutex_struct mutex_t; +typedef struct rb_mutex_struct +{ + rb_thread_lock_t lock; + rb_thread_cond_t cond; + struct rb_thread_struct volatile *th; + volatile int cond_waiting, cond_notified; + struct rb_mutex_struct *next_mutex; +} mutex_t; static void rb_mutex_unlock_all(mutex_t *mutex); static void rb_check_deadlock(rb_vm_t *vm); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/