CLRETAINEVENT(3clc)
β¨ NAME β¨
clRetainEvent β bestie, this one just bumps up the event reference count. That's it. That's the whole job. π
cl_int clRetainEvent(cl_event event);
Welcome to the OpenCL Manual, babe. We're doing reference counting today and honestly? It's giving β¨ownershipβ¨.
πΈ PARAMETERS πΈ
eventβ the event object you're retaining. Like, you're telling the universe "yeah I'm holding onto this one, don't you dare free it yet." π«Ά
π NOTES π
Okay so important lil fact: the OpenCL commands that return an event do an implicit retain already. So the runtime's got your back there. No cap. π
π₯ ERRORS π₯
Returns CL_SUCCESS if the function executed successfully, or one of the errors below:
CL_INVALID_EVENTβ ifeventis 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. π
π SPECIFICATION π
OpenCL Specification[1]
π SEE ALSO π
π AUTHORS π
The Khronos Group
β COPYRIGHT β
Copyright Β© 2007-2011 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and/or associated documentation files (the "Materials"), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to the condition that this copyright notice and permission notice shall be included in all copies or substantial portions of the Materials.
π¦ NOTES π¦
- OpenCL Specification β page 184, section 5.9 - Event Objects
and that's the whole page bestie, retain responsibly π
That was CLRETAINEVENT(3clc) from the OpenCL Manual, brought to you by The Khronos Group, dated 01/14/2021. Go retain something (and remember to release it later, iykyk). πβ¨
π¦ where this page comes from
- ubuntu jammy: opencl-1.2-man-doc 1.0~svn33624-5 Β· other
- ubuntu noble: opencl-1.2-man-doc 1.0~svn33624-5 Β· other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms