Thread
class Thread
Public Instance Methods
Freezes the thread so that thread local variables cannot be set via #thread_variable_set, nor can fiber local variables be set.
me = Thread.current me.freeze me.thread_variable_set(:oliver, "a") #=> RuntimeError: can't modify frozen thread locals me[:oliver] = "a" #=