Method: Pantheios::Util::ThreadUtil.get_thread_name

Defined in:
lib/pantheios/util/thread_util.rb

.get_thread_name(t) ⇒ Object

Obtains the name of the calling thread



27
28
29
30
31
32
33
34
# File 'lib/pantheios/util/thread_util.rb', line 27

def self.get_thread_name t

  t ||= Thread.current

  return t.thread_name if t.respond_to? :thread_name

  t.to_s
end