class Alexandria::UI::SearchThreadCounter
assists in turning on progress bar when searching and turning it off when all search threads have completed…
Attributes
count[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/alexandria/ui/acquire_dialog.rb, line 26 def initialize @count = 0 super end
Public Instance Methods
end_search()
click to toggle source
# File lib/alexandria/ui/acquire_dialog.rb, line 37 def end_search synchronize do @count -= 1 unless @count.zero? end end
new_search()
click to toggle source
# File lib/alexandria/ui/acquire_dialog.rb, line 31 def new_search synchronize do @count += 1 end end