ds/aba: rename ::load to ::ptr

`load` does not load (`read` and `compare_exchange` do) so give it a
different name.  For the cases where `ptr` was previously the pointer we
were guarding, rename it to `raw`.
This commit is contained in:
Nathaniel Filardo
2019-05-14 12:11:31 +01:00
parent c7d509e418
commit 997ebc5065
2 changed files with 14 additions and 9 deletions

View File

@@ -29,7 +29,7 @@ namespace snmalloc
do
{
T* top = ABAT::load(cmp);
T* top = ABAT::ptr(cmp);
last->next.store(top, std::memory_order_release);
} while (!stack.compare_exchange(cmp, first));
}
@@ -44,7 +44,7 @@ namespace snmalloc
do
{
top = ABAT::load(cmp);
top = ABAT::ptr(cmp);
if (top == nullptr)
break;
@@ -63,7 +63,7 @@ namespace snmalloc
do
{
top = ABAT::load(cmp);
top = ABAT::ptr(cmp);
if (top == nullptr)
break;