mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
thread_group: fix build with asserts enabled
See https://github.com/monero-project/monero/pull/1291
This commit is contained in:
parent
e8a55db29d
commit
acf908c834
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ void thread_group::data::dispatch(std::function<void()> f) {
|
||||||
{
|
{
|
||||||
const std::unique_lock<std::mutex> lock(mutex);
|
const std::unique_lock<std::mutex> lock(mutex);
|
||||||
assert(last != nullptr);
|
assert(last != nullptr);
|
||||||
assert(last->next == nullptr);
|
assert(last->ptr == nullptr);
|
||||||
if (pending == std::numeric_limits<std::size_t>::max()) {
|
if (pending == std::numeric_limits<std::size_t>::max()) {
|
||||||
throw std::overflow_error("thread_group exceeded max queue depth");
|
throw std::overflow_error("thread_group exceeded max queue depth");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue