Class: OpenCL::GLsync
- Inherits:
-
FFI::ManagedStruct
- Object
- FFI::ManagedStruct
- OpenCL::GLsync
- Defined in:
- lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb
Class Method Summary collapse
-
.release(ptr) ⇒ Object
method called at GLsync deletion, releases the object if aplicable.
Instance Method Summary collapse
-
#initialize(ptr, retain = true) ⇒ GLsync
constructor
Creates a new GLsync and retains it if specified and aplicable.
- #to_s ⇒ Object
Constructor Details
#initialize(ptr, retain = true) ⇒ GLsync
Creates a new GLsync and retains it if specified and aplicable
1666 1667 1668 1669 |
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 1666 def initialize(ptr, retain = true) super(ptr) #STDERR.puts "Allocating GLsync: #{ptr}" end |
Class Method Details
.release(ptr) ⇒ Object
method called at GLsync deletion, releases the object if aplicable
1680 1681 |
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 1680 def self.release(ptr) end |
Instance Method Details
#to_s ⇒ Object
1671 1672 1673 1674 1675 1676 1677 |
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 1671 def to_s if self.respond_to?(:name) then return self.name else return super end end |