Merge pull request #9198 from KonduitAI/qwr_fixSeg

fix segfault (threading: tryAcquire)
This commit is contained in:
Adam Gibson 2021-03-01 22:14:24 +09:00 committed by GitHub
commit 2ae9f58909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,7 @@ namespace samediff {
Ticket* ThreadPool::tryAcquire(int numThreads) {
//std::vector<BlockingQueue<CallableWithArguments*>*> queues;
if(numThreads<=0) return nullptr;
Ticket *t = nullptr;
// we check for threads availability first
bool threaded = false;