Commit ef7f196a authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

added eventual::test

parent 909c4644
......@@ -140,6 +140,15 @@ template <typename T> class eventual {
return m_value;
}
/**
* @brief Test the eventual.
*/
bool test() {
int flag;
TL_EVENTUAL_ASSERT(ABT_eventual_test(m_eventual, nullptr, &flag));
return flag;
}
/**
* @brief Reset the eventual.
*/
......@@ -224,6 +233,15 @@ template <> class eventual<void> {
*/
void wait() { TL_EVENTUAL_ASSERT(ABT_eventual_wait(m_eventual, nullptr)); }
/**
* @brief Test the eventual.
*/
bool test() {
int flag;
TL_EVENTUAL_ASSERT(ABT_eventual_test(m_eventual, nullptr, &flag));
return flag;
}
/**
* @brief Reset the eventual.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment