NFC: lockrange: add note about ancestor()

This commit is contained in:
Nathaniel Wesley Filardo
2022-12-10 10:58:03 +00:00
committed by Nathaniel Filardo
parent 6ca39403bf
commit 8f4cc1b4da

View File

@@ -7,6 +7,9 @@ namespace snmalloc
{
/**
* Protect the ParentRange with a spin lock.
*
* Accesses via the ancestor() mechanism will bypass the lock and so
* should be used only where the resulting data races are acceptable.
*/
struct LockRange
{