X7ROOT File Manager
Current Path:
/opt/alt/ruby24/lib64/ruby/2.4.0
opt
/
alt
/
ruby24
/
lib64
/
ruby
/
2.4.0
/
??
..
??
English.rb
(6.45 KB)
??
abbrev.rb
(3.49 KB)
??
base64.rb
(3.31 KB)
??
benchmark.rb
(17.9 KB)
??
cgi
??
cgi.rb
(9.8 KB)
??
cmath.rb
(9.48 KB)
??
csv.rb
(83.53 KB)
??
date.rb
(1004 B)
??
debug.rb
(29.98 KB)
??
delegate.rb
(10.31 KB)
??
digest
??
digest.rb
(2.83 KB)
??
drb
??
drb.rb
(50 B)
??
e2mmap.rb
(3.94 KB)
??
erb.rb
(27.25 KB)
??
expect.rb
(2.17 KB)
??
fiddle
??
fiddle.rb
(1.68 KB)
??
fileutils.rb
(44.06 KB)
??
find.rb
(2.52 KB)
??
forwardable
??
forwardable.rb
(8.5 KB)
??
getoptlong.rb
(15.41 KB)
??
io
??
ipaddr.rb
(17.1 KB)
??
irb
??
irb.rb
(20.29 KB)
??
json
??
json.rb
(1.77 KB)
??
kconv.rb
(5.77 KB)
??
logger.rb
(23.53 KB)
??
mathn.rb
(3.42 KB)
??
matrix
??
matrix.rb
(53.37 KB)
??
mkmf.rb
(84.32 KB)
??
monitor.rb
(7.02 KB)
??
mutex_m.rb
(2.04 KB)
??
net
??
observer.rb
(5.83 KB)
??
open-uri.rb
(24.76 KB)
??
open3.rb
(20.59 KB)
??
openssl
??
openssl.rb
(445 B)
??
optionparser.rb
(59 B)
??
optparse
??
optparse.rb
(57.25 KB)
??
ostruct.rb
(10.2 KB)
??
pathname.rb
(16.08 KB)
??
pp.rb
(14.43 KB)
??
prettyprint.rb
(15.89 KB)
??
prime.rb
(12.49 KB)
??
profile.rb
(236 B)
??
profiler.rb
(4.54 KB)
??
pstore.rb
(14.71 KB)
??
psych
??
psych.rb
(15.25 KB)
??
racc
??
rbconfig
??
rdoc
??
rdoc.rb
(5.07 KB)
??
resolv-replace.rb
(1.76 KB)
??
resolv.rb
(73.48 KB)
??
rexml
??
rinda
??
ripper
??
ripper.rb
(2.56 KB)
??
rss
??
rss.rb
(2.87 KB)
??
rubygems
??
rubygems.rb
(35.38 KB)
??
scanf.rb
(23.56 KB)
??
securerandom.rb
(7.48 KB)
??
set.rb
(20.74 KB)
??
shell
??
shell.rb
(11.37 KB)
??
shellwords.rb
(6.66 KB)
??
singleton.rb
(4.06 KB)
??
socket.rb
(42.99 KB)
??
sync.rb
(7.29 KB)
??
syslog
??
tempfile.rb
(10.8 KB)
??
thwait.rb
(3.35 KB)
??
time.rb
(22.36 KB)
??
timeout.rb
(3.83 KB)
??
tmpdir.rb
(4.29 KB)
??
tracer.rb
(6.44 KB)
??
tsort.rb
(14.3 KB)
??
ubygems.rb
(298 B)
??
un.rb
(9.18 KB)
??
unicode_normalize
??
unicode_normalize.rb
(3.2 KB)
??
uri
??
uri.rb
(3.1 KB)
??
weakref.rb
(2.95 KB)
??
webrick
??
webrick.rb
(6.72 KB)
??
x86_64-linux
??
yaml
??
yaml.rb
(1.73 KB)
Editing: mutex_m.rb
# frozen_string_literal: false # # mutex_m.rb - # $Release Version: 3.0$ # $Revision: 1.7 $ # Original from mutex.rb # by Keiju ISHITSUKA(keiju@ishitsuka.com) # modified by matz # patched by akira yamada # # -- require 'thread' # = mutex_m.rb # # When 'mutex_m' is required, any object that extends or includes Mutex_m will # be treated like a Mutex. # # Start by requiring the standard library Mutex_m: # # require "mutex_m.rb" # # From here you can extend an object with Mutex instance methods: # # obj = Object.new # obj.extend Mutex_m # # Or mixin Mutex_m into your module to your class inherit Mutex instance # methods. # # class Foo # include Mutex_m # # ... # end # obj = Foo.new # # this obj can be handled like Mutex # module Mutex_m def Mutex_m.define_aliases(cl) # :nodoc: cl.module_eval %q{ alias locked? mu_locked? alias lock mu_lock alias unlock mu_unlock alias try_lock mu_try_lock alias synchronize mu_synchronize } end def Mutex_m.append_features(cl) # :nodoc: super define_aliases(cl) unless cl.instance_of?(Module) end def Mutex_m.extend_object(obj) # :nodoc: super obj.mu_extended end def mu_extended # :nodoc: unless (defined? locked? and defined? lock and defined? unlock and defined? try_lock and defined? synchronize) Mutex_m.define_aliases(singleton_class) end mu_initialize end # See Mutex#synchronize def mu_synchronize(&block) @_mutex.synchronize(&block) end # See Mutex#locked? def mu_locked? @_mutex.locked? end # See Mutex#try_lock def mu_try_lock @_mutex.try_lock end # See Mutex#lock def mu_lock @_mutex.lock end # See Mutex#unlock def mu_unlock @_mutex.unlock end # See Mutex#sleep def sleep(timeout = nil) @_mutex.sleep(timeout) end private def mu_initialize # :nodoc: @_mutex = Thread::Mutex.new end def initialize(*args) # :nodoc: mu_initialize super end end
Upload File
Create Folder