update boost on linux
This commit is contained in:
@@ -82,6 +82,21 @@ public:
|
||||
return m_event;
|
||||
}
|
||||
|
||||
#if defined(BOOST_COMPUTE_CL_VERSION_1_1) || defined(BOOST_COMPUTE_DOXYGEN_INVOKED)
|
||||
/// Invokes a generic callback function once the future is ready.
|
||||
///
|
||||
/// The function specified by callback must be invokable with zero arguments.
|
||||
///
|
||||
/// \see_opencl_ref{clSetEventCallback}
|
||||
/// \opencl_version_warning{1,1}
|
||||
template<class Function>
|
||||
future& then(Function callback)
|
||||
{
|
||||
m_event.set_callback(callback);
|
||||
return *this;
|
||||
}
|
||||
#endif // BOOST_COMPUTE_CL_VERSION_1_1
|
||||
|
||||
private:
|
||||
T m_result;
|
||||
event m_event;
|
||||
@@ -149,6 +164,21 @@ public:
|
||||
return m_event;
|
||||
}
|
||||
|
||||
#if defined(BOOST_COMPUTE_CL_VERSION_1_1) || defined(BOOST_COMPUTE_DOXYGEN_INVOKED)
|
||||
/// Invokes a generic callback function once the future is ready.
|
||||
///
|
||||
/// The function specified by callback must be invokable with zero arguments.
|
||||
///
|
||||
/// \see_opencl_ref{clSetEventCallback}
|
||||
/// \opencl_version_warning{1,1}
|
||||
template<class Function>
|
||||
future<void> &then(Function callback)
|
||||
{
|
||||
m_event.set_callback(callback);
|
||||
return *this;
|
||||
}
|
||||
#endif // BOOST_COMPUTE_CL_VERSION_1_1
|
||||
|
||||
private:
|
||||
event m_event;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user