More threadpool bs

This commit is contained in:
Dynamitos
2021-12-02 13:00:03 +01:00
parent 5fafdda770
commit 9e3a2446ce
37 changed files with 488 additions and 541 deletions
+5 -5
View File
@@ -223,11 +223,7 @@ namespace Seele
}
~Array()
{
if (_data)
{
deallocateArray(_data, allocated);
_data = nullptr;
}
clear();
}
constexpr bool operator==(const Array &other)
@@ -347,6 +343,10 @@ namespace Seele
}
constexpr void clear()
{
if(_data == nullptr)
{
return;
}
for(size_type i = 0; i < arraySize; ++i)
{
_data[i].~T();