summaryrefslogtreecommitdiff
path: root/inference-engine/thirdparty/clDNN/common/boost/1.64.0/include/boost-1_64/boost/compute/user_event.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'inference-engine/thirdparty/clDNN/common/boost/1.64.0/include/boost-1_64/boost/compute/user_event.hpp')
-rw-r--r--inference-engine/thirdparty/clDNN/common/boost/1.64.0/include/boost-1_64/boost/compute/user_event.hpp88
1 files changed, 0 insertions, 88 deletions
diff --git a/inference-engine/thirdparty/clDNN/common/boost/1.64.0/include/boost-1_64/boost/compute/user_event.hpp b/inference-engine/thirdparty/clDNN/common/boost/1.64.0/include/boost-1_64/boost/compute/user_event.hpp
deleted file mode 100644
index a3fdba033..000000000
--- a/inference-engine/thirdparty/clDNN/common/boost/1.64.0/include/boost-1_64/boost/compute/user_event.hpp
+++ /dev/null
@@ -1,88 +0,0 @@
-//---------------------------------------------------------------------------//
-// Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
-//
-// Distributed under the Boost Software License, Version 1.0
-// See accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt
-//
-// See http://boostorg.github.com/compute for more information.
-//---------------------------------------------------------------------------//
-
-#ifndef BOOST_COMPUTE_USER_EVENT_HPP
-#define BOOST_COMPUTE_USER_EVENT_HPP
-
-#include <boost/compute/event.hpp>
-#include <boost/compute/context.hpp>
-
-namespace boost {
-namespace compute {
-
-#if defined(CL_VERSION_1_1) || defined(BOOST_COMPUTE_DOXYGEN_INVOKED)
-/// \class user_event
-/// \brief An user-created event.
-///
-/// \opencl_version_warning{1,1}
-///
-/// \see event
-class user_event : public event
-{
-public:
- /// Creates a new user-event object.
- ///
- /// \see_opencl_ref{clCreateUserEvent}
- explicit user_event(const context &context)
- {
- cl_int error;
- m_event = clCreateUserEvent(context.get(), &error);
- if(!m_event){
- BOOST_THROW_EXCEPTION(opencl_error(error));
- }
- }
-
- /// Creates a new user-event from \p other.
- user_event(const user_event &other)
- : event(other)
- {
- }
-
- /// Copies the user-event from \p other to \c *this.
- user_event& operator=(const user_event &other)
- {
- event::operator=(other);
-
- return *this;
- }
-
- #ifndef BOOST_COMPUTE_NO_RVALUE_REFERENCES
- /// Move-constructs a new user event object from \p other.
- user_event(user_event&& other) BOOST_NOEXCEPT
- : event(std::move(other))
- {
- }
-
- /// Move-assigns the user event from \p other to \c *this.
- user_event& operator=(user_event&& other) BOOST_NOEXCEPT
- {
- event::operator=(std::move(other));
-
- return *this;
- }
- #endif // BOOST_COMPUTE_NO_RVALUE_REFERENCES
-
- /// Sets the execution status for the user-event.
- ///
- /// \see_opencl_ref{clSetUserEventStatus}
- void set_status(cl_int execution_status)
- {
- cl_int ret = clSetUserEventStatus(m_event, execution_status);
- if(ret != CL_SUCCESS){
- BOOST_THROW_EXCEPTION(opencl_error(ret));
- }
- }
-};
-#endif // CL_VERSION_1_1
-
-} // end compute namespace
-} // end boost namespace
-
-#endif // BOOST_COMPUTE_EVENT_HPP