mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* marshal.c (w_class): should not dump singleton class.
[ruby-dev:22631] * marshal.c (class2path): check anonymous class/module before checking referable, and allow singleton classes. * marshal.c (class2path): get class path and check referable. [ruby-dev:22588] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
588394468c
commit
f4c7c5dc07
4 changed files with 46 additions and 23 deletions
|
@ -189,11 +189,14 @@ class ConditionVariable
|
|||
# Releases the lock held in +mutex+ and waits; reacquires the lock on wakeup.
|
||||
#
|
||||
def wait(mutex)
|
||||
mutex.exclusive_unlock do
|
||||
@waiters.push(Thread.current)
|
||||
Thread.stop
|
||||
begin
|
||||
mutex.exclusive_unlock do
|
||||
@waiters.push(Thread.current)
|
||||
Thread.stop
|
||||
end
|
||||
ensure
|
||||
mutex.lock
|
||||
end
|
||||
mutex.lock
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue