Commit e077f65e authored by Matthieu Dorier's avatar Matthieu Dorier

corrected some errors

parent 16effaa8
......@@ -49,7 +49,7 @@ class future {
static void when_ready(void** arg) {
auto f = static_cast<std::function<void(const std::vector<T*>&)>*>(arg[0]);
auto n = static_cast<std::intptr_t>(arg[1]);
auto n = reinterpret_cast<std::intptr_t>(arg[1]);
std::vector<T*> v(n);
for(unsigned i=0; i<n; i++) v[i] = static_cast<T*>(arg[i+2]);
(*f)(v);
......
......@@ -132,6 +132,7 @@ class mutex {
} else {
TL_MUTEX_EXCEPTION(ABT_mutex_trylock(m_mutex), ret);
}
return false;
}
/**
......
......@@ -81,6 +81,7 @@ class rwlock {
TL_RWLOCK_ASSERT(ABT_rwlock_free(&m_lock));
m_lock = other.m_lock;
other.m_lock = ABT_RWLOCK_NULL;
return *this;
}
/**
......
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