# Function ocl_core::set_user_event_status [−] [src]

    pub fn set_user_event_status<'e, E: ClEventPtrRef<'e>>(
        event: &'e E,
        execution_status: CommandExecutionStatus
    ) -> OclCoreResult<()>

Updates a user events status.

Setting status to completion will cause commands waiting upon this event to execute.

Will return an error if the event is not a 'user' event (created with `::create_user_event`).

Valid options are (for OpenCL versions 1.1 - 2.1):

`CommandExecutionStatus::Complete` `CommandExecutionStatus::Running` `CommandExecutionStatus::Submitted` `CommandExecutionStatus::Queued`

To the best of the author's knowledge, the only variant that matters is `::Complete`. Everything else is functionally equivalent and is useful only for debugging or profiling purposes (this may change in the future).

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)