[][src]Trait open_cl_low_level::cl_retain_release::RetainRelease

pub trait RetainRelease: ClObject {
    unsafe fn retain(&self);
unsafe fn release(&mut self); }

Required methods

unsafe fn retain(&self)

Retains (increments the reference count of) the ClObject.

Safety

Balancing the release and retain reference count of a ClObject must be done with care. Improper usage of release and retain can lead to undefined behavior.

Usage of an invalid ClObject is undefined behavior.

unsafe fn release(&mut self)

Releases (decrements reference count of) the ClObject

Safety

Balancing the release and retain reference count of a ClObject must be done with care. Improper usage of release and retain can lead to undefined behavior.

Usage of an invalid ClObject is undefined behavior.

Loading content...

Implementations on Foreign Types

impl RetainRelease for cl_command_queue[src]

unsafe fn retain(&self)[src]

This function is used to increase the atomic reference count of the associated OpenCL ARC object. This function should only be used when the OpenCL interface returns a ARC object that is not reference counted by OpenCL (yes, OpenCL let's you do that...)

Safety

This function atomically decrements the OpenCL reference count. Mismanagement of an object's OpenCL ARC can lead to undefined behavior.

unsafe fn release(&mut self)[src]

This function is used to decrease the OpenCL atomic reference count of the associated OpenCL ARC object.

Safety

This function atomically decrements the OpenCL reference count. Mismanagement of an object's OpenCL ARC can lead to undefined behavior.

impl RetainRelease for cl_context[src]

unsafe fn retain(&self)[src]

This function is used to increase the atomic reference count of the associated OpenCL ARC object. This function should only be used when the OpenCL interface returns a ARC object that is not reference counted by OpenCL (yes, OpenCL let's you do that...)

Safety

This function atomically decrements the OpenCL reference count. Mismanagement of an object's OpenCL ARC can lead to undefined behavior.

unsafe fn release(&mut self)[src]

This function is used to decrease the OpenCL atomic reference count of the associated OpenCL ARC object.

Safety

This function atomically decrements the OpenCL reference count. Mismanagement of an object's OpenCL ARC can lead to undefined behavior.

impl RetainRelease for cl_device_id[src]

unsafe fn retain(&self)[src]

This function is used to increase the atomic reference count of the associated OpenCL ARC object. This function should only be used when the OpenCL interface returns a ARC object that is not reference counted by OpenCL (yes, OpenCL let's you do that...)

Safety

This function atomically decrements the OpenCL reference count. Mismanagement of an object's OpenCL ARC can lead to undefined behavior.

unsafe fn release(&mut self)[src]

This function is used to decrease the OpenCL atomic reference count of the associated OpenCL ARC object.

Safety

This function atomically decrements the OpenCL reference count. Mismanagement of an object's OpenCL ARC can lead to undefined behavior.

impl RetainRelease for cl_event[src]

unsafe fn retain(&self)[src]

This function is used to increase the atomic reference count of the associated OpenCL ARC object. This function should only be used when the OpenCL interface returns a ARC object that is not reference counted by OpenCL (yes, OpenCL let's you do that...)

Safety

This function atomically decrements the OpenCL reference count. Mismanagement of an object's OpenCL ARC can lead to undefined behavior.

unsafe fn release(&mut self)[src]

This function is used to decrease the OpenCL atomic reference count of the associated OpenCL ARC object.

Safety

This function atomically decrements the OpenCL reference count. Mismanagement of an object's OpenCL ARC can lead to undefined behavior.

impl RetainRelease for cl_kernel[src]

unsafe fn retain(&self)[src]

This function is used to increase the atomic reference count of the associated OpenCL ARC object. This function should only be used when the OpenCL interface returns a ARC object that is not reference counted by OpenCL (yes, OpenCL let's you do that...)

Safety

This function atomically decrements the OpenCL reference count. Mismanagement of an object's OpenCL ARC can lead to undefined behavior.

unsafe fn release(&mut self)[src]

This function is used to decrease the OpenCL atomic reference count of the associated OpenCL ARC object.

Safety

This function atomically decrements the OpenCL reference count. Mismanagement of an object's OpenCL ARC can lead to undefined behavior.

impl RetainRelease for cl_mem[src]

unsafe fn retain(&self)[src]

This function is used to increase the atomic reference count of the associated OpenCL ARC object. This function should only be used when the OpenCL interface returns a ARC object that is not reference counted by OpenCL (yes, OpenCL let's you do that...)

Safety

This function atomically decrements the OpenCL reference count. Mismanagement of an object's OpenCL ARC can lead to undefined behavior.

unsafe fn release(&mut self)[src]

This function is used to decrease the OpenCL atomic reference count of the associated OpenCL ARC object.

Safety

This function atomically decrements the OpenCL reference count. Mismanagement of an object's OpenCL ARC can lead to undefined behavior.

impl RetainRelease for cl_program[src]

unsafe fn retain(&self)[src]

This function is used to increase the atomic reference count of the associated OpenCL ARC object. This function should only be used when the OpenCL interface returns a ARC object that is not reference counted by OpenCL (yes, OpenCL let's you do that...)

Safety

This function atomically decrements the OpenCL reference count. Mismanagement of an object's OpenCL ARC can lead to undefined behavior.

unsafe fn release(&mut self)[src]

This function is used to decrease the OpenCL atomic reference count of the associated OpenCL ARC object.

Safety

This function atomically decrements the OpenCL reference count. Mismanagement of an object's OpenCL ARC can lead to undefined behavior.

impl RetainRelease for cl_platform_id[src]

Loading content...

Implementors

Loading content...