diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 08:59:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 08:59:31 +0000 |
commit | 97cdb5ac25ddcf0e7664867f39ccaccc4d139c0e (patch) | |
tree | cfcc2932a3999bf25a6ac7289fb91685857e1504 /thread.c | |
parent | 162cc94d15683be9b45bb70b40cfdb3f040b74e2 (diff) | |
download | ruby-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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(); |