Clang format.

This commit is contained in:
Matthew Parkinson
2020-02-26 20:59:38 +00:00
parent 136dd23932
commit c1c8a7bfee
3 changed files with 26 additions and 28 deletions

View File

@@ -14,7 +14,7 @@ public:
{
return alloc;
}
alloc = current_alloc_pool()->acquire();
return alloc;
}
@@ -31,13 +31,13 @@ int main()
// 28 is large enough to produce a nested allocator.
// It is also large enough for the example to run in.
// For 1MiB superslabs, SUPERSLAB_BITS + 4 is not big enough for the example.
auto a = ThreadAlloc::get();
for (size_t i = 0; i < 1000; i++)
{
auto r1 = a->alloc(100);
a->dealloc(r1);
}
}