Class: Lumino::RefObject

Inherits:
RefObject
  • Object
show all
Defined in:
LuminoRubyDoc.rb

Overview

全てのオブジェクトのベースオブジェクトです。

Instance Method Summary (collapse)

Instance Method Details

- (Object) add_ref

オブジェクトの参照カウントをインクリメントします。

 

この関数は「参照カウント」という概念について十分に理解した上で使用してください。
参照カウントは RefObject.add_ref でインクリメントされ、RefObject.release でデクリメントされます。
Release 漏れがあるとメモリリークの原因になります。


550
551
# File 'LuminoRubyDoc.rb', line 550

def add_ref
end

- (Integer) get_ref_count

オブジェクトの参照カウント取得します。

Returns:

  • (Integer)

    参照カウントを格納する変数



555
556
# File 'LuminoRubyDoc.rb', line 555

def get_ref_count
end

- (Object) release

オブジェクトを解放します。

 

指定されたオブジェクトの参照を解放します。


542
543
# File 'LuminoRubyDoc.rb', line 542

def release
end