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



3329
3330
3331
3332
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 3329

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



3335
3336
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 3335

def self.release(ptr)
end

Instance Method Details

#to_sObject

:startdoc:



3339
3340
3341
3342
3343
3344
3345
# File 'lib/opencl_ruby_ffi/opencl_ruby_ffi_base_gen.rb', line 3339

def to_s
  if self.respond_to?(:name) then
    return self.name
  else
    return super
  end
end