Sha256: 9eeb1b5f33e48530c2b1bfeea94314ec43b41a5756e038e91a782d43c8cc1287

Contents?: true

Size: 349 Bytes

Versions: 16

Compression:

Stored size: 349 Bytes

Contents

# make default what should be default
Thread.abort_on_exception = true

class Thread

  def self.name
    Thread.current[:name] || Java::JavaLang::Thread.currentThread.getName
  end

  def self.name=(value)
    Thread.current[:name] = value
    if RUBY_PLATFORM == "java"
      Java::JavaLang::Thread.currentThread.setName(value)
    end
  end

end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
liquid-ext-2.0.3 lib/liquid/ext/thread.rb
liquid-ext-2.0.2 lib/liquid/ext/thread.rb
liquid-ext-2.0.1 lib/liquid/ext/thread.rb
liquid-ext-2.0.0 lib/liquid/ext/thread.rb
liquid-ext-1.2.6 lib/liquid/ext/thread.rb
liquid-ext-1.2.5 lib/liquid/ext/thread.rb
liquid-ext-1.2.4 lib/liquid/ext/thread.rb
liquid-ext-1.2.2 lib/liquid/ext/thread.rb
liquid-ext-1.2.1 lib/liquid/ext/thread.rb
liquid-ext-1.2.0 lib/liquid/ext/thread.rb
liquid-ext-1.1.1 lib/liquid/ext/thread.rb
liquid-ext-1.1.0 lib/liquid/ext/thread.rb
liquid-ext-1.0.2 lib/liquid/ext/thread.rb
liquid-ext-1.0.1 lib/liquid/ext/thread.rb
liquid-ext-1.0.0 lib/liquid/ext/thread.rb
madvertise-ext-0.9.7 lib/madvertise/ext/thread.rb