Merge pull request #896 from adjonesey/adjo/fix-regression-895

Fix Regression 895
This commit is contained in:
georgemoralis 2024-09-13 07:43:31 +03:00 committed by GitHub
commit de183d3b80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1063,7 +1063,7 @@ ScePthread PThreadPool::Create(const char* name) {
std::scoped_lock lock{m_mutex};
for (auto* p : m_threads) {
if (p->is_free && p->name == name) {
if (p->is_free && name != nullptr && p->name == name) {
p->is_free = false;
return p;
}