logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

clRetainEvent - Increments the event reference count.

Authors

TheKhronosGroup

Errors

       Returns CL_SUCCESS if the function executed successfully, or one of the errors below:

       •   CL_INVALID_EVENT if event is not a valid event object.

       •   CL_OUT_OF_RESOURCES if there is a failure to allocate resources required by the OpenCL implementation
           on the device.

       •   CL_OUT_OF_HOST_MEMORY if there is a failure to allocate resources required by the OpenCL
           implementation on the host.

Name

       clRetainEvent - Increments the event reference count.

       cl_intclRetainEvent(cl_eventevent);

Notes

        1. OpenCL Specification
           page 184, section 5.9 - Event Objects

The Khronos Group                                  11/18/2024                                CLRETAINEVENT(3clc)

Parameters

event
           Event object being retained.

See Also

clGetEventInfo(3clc), clReleaseEvent(3clc), clWaitForEvents(3clc)

Specification

OpenCLSpecification[1]

See Also