updated boost on windows

This commit is contained in:
Bassem Girgis
2019-08-13 21:48:48 -05:00
parent 7d77d485fd
commit b40a3bee82
5162 changed files with 473027 additions and 116452 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;
};