Class: OsCtld::LockRegistry::Lock

Inherits:
Struct
  • Object
show all
Defined in:
lib/osctld/lock_registry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#backtraceObject

Returns the value of attribute backtrace

Returns:

  • (Object)

    the current value of backtrace



13
14
15
# File 'lib/osctld/lock_registry.rb', line 13

def backtrace
  @backtrace
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



13
14
15
# File 'lib/osctld/lock_registry.rb', line 13

def id
  @id
end

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



13
14
15
# File 'lib/osctld/lock_registry.rb', line 13

def object
  @object
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



13
14
15
# File 'lib/osctld/lock_registry.rb', line 13

def state
  @state
end

#threadObject

Returns the value of attribute thread

Returns:

  • (Object)

    the current value of thread



13
14
15
# File 'lib/osctld/lock_registry.rb', line 13

def thread
  @thread
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



13
14
15
# File 'lib/osctld/lock_registry.rb', line 13

def time
  @time
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



13
14
15
# File 'lib/osctld/lock_registry.rb', line 13

def type
  @type
end

Instance Method Details

#==(other) ⇒ Object



14
15
16
# File 'lib/osctld/lock_registry.rb', line 14

def ==(other)
  thread == other.thread && object == other.object && type == other.type
end