mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 15:29:31 +03:00
add comment
This commit is contained in:
parent
4d1b0f0dbb
commit
9dd753d2c0
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ static inline bool mi_bfield_atomic_try_clear_mask_of(_Atomic(mi_bfield_t)*b, mi
|
||||||
mi_assert_internal(mask != 0);
|
mi_assert_internal(mask != 0);
|
||||||
// try to atomically clear the mask bits
|
// try to atomically clear the mask bits
|
||||||
do {
|
do {
|
||||||
if ((expect & mask) != mask) {
|
if ((expect & mask) != mask) { // are all bits still set?
|
||||||
if (all_clear != NULL) { *all_clear = (expect == 0); }
|
if (all_clear != NULL) { *all_clear = (expect == 0); }
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue