forked from Alepha/Alepha
Updated thread slab with overflow protection and rewritten.
This commit is contained in:
@ -11,12 +11,12 @@ static auto init= Alepha::Utility::enroll <=[]
|
||||
using namespace Alepha::Testing::literals;
|
||||
|
||||
using namespace Alepha::Memory::exports::ThreadSlab_m;
|
||||
using String= ThreadSlabString;
|
||||
using String= ThreadSlab::String;
|
||||
|
||||
|
||||
"Check slab usage"_test <=[]
|
||||
{
|
||||
std::cout << "I see " << Alepha::Memory::ThreadSlab< char >::slab.reservation().use_count() << " reservations in a separate test." <<
|
||||
std::cout << "I see " << Alepha::Memory::detail::ThreadSlab_m::shim::slab().reservation().use_count() << " reservations in a separate test." <<
|
||||
std::endl;
|
||||
};
|
||||
|
||||
@ -43,7 +43,7 @@ std::endl;
|
||||
|
||||
"Check slab usage"_test <=[]
|
||||
{
|
||||
std::cout << "I see " << Alepha::Memory::ThreadSlab< char >::slab.reservation().use_count() << " reservations in a separate test." <<
|
||||
std::cout << "I see " << Alepha::Memory::detail::ThreadSlab_m::shim::slab().reservation().use_count() << " reservations in a separate test." <<
|
||||
std::endl;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user