Class | OpenWFE::MonitorProvider |
In: |
lib/openwfe/expool/expressionpool.rb
|
Parent: | Object |
a small help class for storing monitors provided on demand to expressions that need them
MAX_MONITORS | = | 10000 |
# File lib/openwfe/expool/expressionpool.rb, line 1101 1101: def initialize (application_context=nil) 1102: super() 1103: @application_context = application_context 1104: @monitors = LruHash.new(MAX_MONITORS) 1105: end
# File lib/openwfe/expool/expressionpool.rb, line 1107 1107: def [] (key) 1108: synchronize do 1109: 1110: (@monitors[key] ||= Monitor.new) 1111: end 1112: end