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:
committed by
Nathaniel Filardo
parent
f3e470c3e4
commit
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)
|
||||
{
|
||||
return domesticate_head(front.load())
|
||||
->atomic_read_next(key_global, domesticate_head) == nullptr;
|
||||
->atomic_read_next(key_global, domesticate_head) != nullptr;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user