1
0
forked from Alepha/Alepha

The slab pointer goes into a cookie.

This commit is contained in:
2024-05-13 15:23:28 -04:00
parent 9e0cbfcb14
commit 95fbee19d9
2 changed files with 46 additions and 47 deletions

View File

@ -13,6 +13,13 @@ static auto init= Alepha::Utility::enroll <=[]
using namespace Alepha::Memory::exports::ThreadSlab_m;
using String= ThreadSlabString;
"Check slab usage"_test <=[]
{
std::cout << "I see " << Alepha::Memory::ThreadSlab< char >::slab.reservation().use_count() << " reservations in a separate test." <<
std::endl;
};
"Can we work with simple `ThreadSlabStrings` without errors?"_test <=[]
{
String s;
@ -33,4 +40,10 @@ static auto init= Alepha::Utility::enroll <=[]
std::cout << s3 << std::endl;
};
"Check slab usage"_test <=[]
{
std::cout << "I see " << Alepha::Memory::ThreadSlab< char >::slab.reservation().use_count() << " reservations in a separate test." <<
std::endl;
};
};