module Hatchet::ThreadNameFormatter
Internal: Module for standardizing the formatting of thread contexts.
Private Instance Methods
thread_name()
click to toggle source
Private: Returns the name of the current thread from the processes pid and the threads object_id when it is not the main thread for the process.
# File lib/hatchet/thread_name_formatter.rb, line 13 def thread_name if Thread.current == Thread.main Process.pid else "#{Process.pid}##{Thread.current.object_id}" end end