зеркало из https://github.com/microsoft/snmalloc.git
remotealloc: make can_dequeue match its tin
The introduction of the remote stub back in https://github.com/microsoft/snmalloc/pull/604 renamed this function from `is_empty` but did not flip the return value to match. Do so now.
This commit is contained in:
Родитель
f3e470c3e4
Коммит
fffc9453bc
|
@ -462,7 +462,7 @@ namespace snmalloc
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return !(message_queue().can_dequeue(domesticate));
|
return message_queue().can_dequeue(domesticate);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -91,7 +91,7 @@ namespace snmalloc
|
||||||
inline bool can_dequeue(Domesticator_head domesticate_head)
|
inline bool can_dequeue(Domesticator_head domesticate_head)
|
||||||
{
|
{
|
||||||
return domesticate_head(front.load())
|
return domesticate_head(front.load())
|
||||||
->atomic_read_next(key_global, domesticate_head) == nullptr;
|
->atomic_read_next(key_global, domesticate_head) != nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Загрузка…
Ссылка в новой задаче