lib/opencl_ruby_ffi/Event.rb
def context
        @_context ||= begin
          ptr = MemoryPointer::new( Context )
          error = OpenCL.clGetEventInfo(self, CONTEXT, Context.size, ptr, nil)
          error_check(error)
          Context::new( ptr.read_pointer )
        end
      end
# Returns the Context associated with the Event
Returns the Context associated with the Event
Returns the Context associated with the Event
def context
        @_context ||= begin
          ptr = MemoryPointer::new( Context )
          error = OpenCL.clGetEventInfo(self, CONTEXT, Context.size, ptr, nil)
          error_check(error)
          Context::new( ptr.read_pointer )
        end
      end
def context @_context ||= begin ptr = MemoryPointer :: new ( Context ) error = OpenCL . clGetEventInfo ( self , CONTEXT , Context . size , ptr , nil ) error_check ( error ) Context :: new ( ptr . read_pointer ) end end
Returns the Context associated with the Event
Returns the Context associated with the Event