summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 08:59:31 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 08:59:31 +0000
commit97cdb5ac25ddcf0e7664867f39ccaccc4d139c0e (patch)
treecfcc2932a3999bf25a6ac7289fb91685857e1504 /thread.c
parent162cc94d15683be9b45bb70b40cfdb3f040b74e2 (diff)
downloadruby-97cdb5ac25ddcf0e7664867f39ccaccc4d139c0e.tar.gz
* load.c (load_lock): reverted.
* thread.c (rb_barrier_wait): check for recursive wait. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/thread.c b/thread.c
index 5fd2033f08..ae0c3b3bfb 100644
--- a/thread.c
+++ b/thread.c
@@ -2555,6 +2555,9 @@ rb_barrier_wait(VALUE self)
if (thlist_signal(&barrier->waiting, 1, &barrier->owner)) return Qfalse;
return Qtrue;
}
+ else if (barrier->owner == GET_THREAD()) {
+ return Qfalse;
+ }
else {
*barrier->tail = q = ALLOC(rb_thread_list_t);
q->th = GET_THREAD();