forked from Alepha/Alepha
The slab pointer goes into a cookie.
This commit is contained in:
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user