summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-28 11:17:43 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-28 11:17:43 +0000
commit8d56defa55fe826f8bb8d549a0f50c8b51ada315 (patch)
tree1449a60d9bee972bc7cde0b9cdb6e5eefdad2104 /thread.c
parent13e0d5bc917612c13134e8dd00fbdc28431874d7 (diff)
* vm_core.h: move the definition of struct rb_mutex_struct.
* thread.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index c965a657de..c27595a21a 100644
--- a/thread.c
+++ b/thread.c
@@ -62,7 +62,14 @@ static double timeofday(void);
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);