| 2134 | friend inline cl_int getInfoHelper(Func, cl_uint, U*, int, typename U::cl_type); |
| 2135 | |
| 2136 | cl_int retain() const |
| 2137 | { |
| 2138 | if (object_ != nullptr) { |
| 2139 | return ReferenceHandler<cl_type>::retain(object_); |
| 2140 | } |
| 2141 | else { |
| 2142 | return CL_SUCCESS; |
| 2143 | } |
| 2144 | } |
| 2145 | |
| 2146 | cl_int release() const |
| 2147 | { |