mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-13 01:43:13 +08:00
Update NonBlockingThreadPool.h plain asserts to use eigen_plain_assert
This commit is contained in:
parent
072ec9d954
commit
134b526d61
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user