mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/fiber/scheduler.rb: Prevent "instance variable @urgent not initialized"
This commit is contained in:
parent
07786edd66
commit
416bb11a5e
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,8 @@ class Scheduler
|
||||||
@lock = Mutex.new
|
@lock = Mutex.new
|
||||||
@blocking = 0
|
@blocking = 0
|
||||||
@ready = []
|
@ready = []
|
||||||
|
|
||||||
|
@urgent = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
attr :readable
|
attr :readable
|
||||||
|
|
Loading…
Reference in a new issue