| Home | Libraries | People | FAQ | More

## Class user_event

boost::compute::user_event — An user-created event.

## Synopsis

    // In header: <boost/compute/user_event.hpp>

    class user_event : public boost::compute::event {
    public:

      // public member functions
      explicit user_event(const context &);
      user_event(const user_event &);
      user_event & operator=(const user_event &);
      user_event(user_event &&) noexcept;
      user_event & operator=(user_event &&) noexcept;
      void set_status(cl_int);
    };

## Description

| Warning
This method is only available if the OpenCL version is 1.1 or later.

See Also: event

### `user_event` public member functions

1.     explicit user_event(const context & context);

   Creates a new user-event object.

   See the documentation for

2.     user_event(const user_event & other);

   Creates a new user-event from `other`.

3.     user_event & operator=(const user_event & other);

   Copies the user-event from `other` to `*this`.

4.     user_event(user_event && other) noexcept;

   Move-constructs a new user event object from `other`.

5.     user_event & operator=(user_event && other) noexcept;

   Move-assigns the user event from `other` to `*this`.

6.     void set_status(cl_int execution_status);

   Sets the execution status for the user-event.

   See the documentation for