update boost on linux

This commit is contained in:
Bassem Girgis
2019-08-10 16:06:25 -05:00
parent 76ad52be58
commit 861b918727
5363 changed files with 483306 additions and 116507 deletions

View File

@@ -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;
};