From 134b526d6110061469168e7e0511822a8e30bcaf Mon Sep 17 00:00:00 2001 From: Sophie Chang Date: Tue, 10 Sep 2024 00:18:27 +0000 Subject: [PATCH] Update NonBlockingThreadPool.h plain asserts to use eigen_plain_assert --- Eigen/src/ThreadPool/NonBlockingThreadPool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 7caeecf3a..b6abc3cba 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -263,13 +263,13 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { uint64_t num_spinning = (state & kNumSpinningMask); uint64_t num_no_notification = (state & kNumNoNotifyMask) >> kNumNoNotifyShift; - assert(num_no_notification <= num_spinning); + eigen_plain_assert(num_no_notification <= num_spinning); return {num_spinning, num_no_notification}; } // Encodes as `spinning_state_` value. uint64_t Encode() const { - assert(num_no_notification <= num_spinning); + eigen_plain_assert(num_no_notification <= num_spinning); return (num_no_notification << kNumNoNotifyShift) | num_spinning; } };