0
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2026-01-18 17:31:19 +01:00

Avoid throwing in destructors (this caused build warnings in test-suite)

This commit is contained in:
Christoph Hertzberg
2019-06-28 11:55:38 +02:00
parent 427f2f66d6
commit 71d0402e3e
3 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ class Barrier {
eigen_assert(((count << 1) >> 1) == count);
}
~Barrier() {
eigen_assert((state_>>1) == 0);
eigen_plain_assert((state_>>1) == 0);
}
void Notify() {

View File

@@ -58,7 +58,7 @@ class EventCount {
~EventCount() {
// Ensure there are no waiters.
eigen_assert((state_.load() & (kStackMask | kWaiterMask)) == kStackMask);
eigen_plain_assert((state_.load() & (kStackMask | kWaiterMask)) == kStackMask);
}
// Prewait prepares for waiting.

View File

@@ -47,7 +47,7 @@ class RunQueue {
array_[i].state.store(kEmpty, std::memory_order_relaxed);
}
~RunQueue() { eigen_assert(Size() == 0); }
~RunQueue() { eigen_plain_assert(Size() == 0); }
// PushFront inserts w at the beginning of the queue.
// If queue is full returns w, otherwise returns default-constructed Work.