Class: OpenCL::GLsync

Inherits:
FFI::ManagedStruct
  • Object
show all
Defined in:
lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb

Class Method Summary collapse

Instance Method Summary collapse

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_sObject



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