class RLTK::CG::GlobalVariable

This class represents global variables.

Public Instance Methods

thread_local=(local) click to toggle source

Set this global variable as thread local or not.

@param [Boolean] local

@return [void]

# File lib/rltk/cg/value.rb, line 1243
def thread_local=(local)
        Bindings.set_thread_local(@ptr, local.to_i)
end
thread_local?() click to toggle source

Check to see if this global variable is thread local.

@return [Boolean]

# File lib/rltk/cg/value.rb, line 1234
def thread_local?
        Bindings.is_thread_local(@ptr).to_bool
end