Struct ocl_core::types::abs::EventList [] [src]

pub struct EventList { /* fields omitted */ }

List of cl_events.

Methods

impl EventList
[src]

Returns a new, empty, EventList.

Pushes a new event onto the list.

Technically, copies event's contained pointer (a cl_event) then mem::forgets it. This seems preferrable to incrementing the reference count (with functions::retain_event) then letting event drop which just decrements it right back.

Removes the last event from the list and returns it.

Appends a new null element to the end of the list and returns a reference to it.

Returns an immutable reference to a pointer, do not deref and store it unless you will manage its associated reference count carefully.

Clones an event by index.

Clones the last event.

Clears each completed event from the list.

TODO: TEST THIS

Trait Implementations

impl Debug for EventList
[src]

Formats the value using the given formatter.

impl ClEventPtrNew for EventList
[src]

impl ClWaitList for EventList
[src]

impl Clone for EventList
[src]

Clones this list in a thread safe manner.

Performs copy-assignment from source. Read more

impl Drop for EventList
[src]

A method called when the value goes out of scope. Read more

impl AsRef<EventList> for EventList
[src]

Performs the conversion.

impl Sync for EventList
[src]

impl Send for EventList
[src]