lib/opencl_ruby_ffi/Event.rb
# Returns the CommandQueue associated with the Event, if it exists
Returns the CommandQueue associated with the Event, if it exists
Returns the CommandQueue associated with the Event if it exists
def command_queue
      @_command_queue ||= begin
        ptr = MemoryPointer::new( CommandQueue )
        error = OpenCL.clGetEventInfo(self, COMMAND_QUEUE, CommandQueue.size, ptr, nil)
        error_check(error)
        pt = ptr.read_pointer
        if pt.null? then
          nil
        else
          CommandQueue::new( pt )
        end
      end
    end
def command_queue @_command_queue ||= begin ptr = MemoryPointer :: new ( CommandQueue ) error = OpenCL . clGetEventInfo ( self , COMMAND_QUEUE , CommandQueue . size , ptr , nil ) error_check ( error ) pt = ptr . read_pointer if pt . null? then nil else CommandQueue :: new ( pt ) end end end
Returns the CommandQueue associated with the Event, if it exists
Returns the CommandQueue associated with the Event if it exists