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:
Nathaniel Wesley Filardo
2023-09-21 19:21:29 +01:00
committed by Nathaniel Filardo
parent f3e470c3e4
commit fffc9453bc
2 changed files with 2 additions and 2 deletions

View File

@@ -462,7 +462,7 @@ namespace snmalloc
}
};
return !(message_queue().can_dequeue(domesticate));
return message_queue().can_dequeue(domesticate);
}
/**

View File

@@ -91,7 +91,7 @@ namespace snmalloc
inline bool can_dequeue(Domesticator_head domesticate_head)
{
return domesticate_head(front.load())
->atomic_read_next(key_global, domesticate_head) == nullptr;
->atomic_read_next(key_global, domesticate_head) != nullptr;
}
/**