Android: Fix logical CPU count.

Otherwise bad things happen.
This commit is contained in:
Unknown W. Brackets
2021-06-13 12:47:11 -07:00
parent cdcd77a931
commit 8ae3f5eb41
4 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ void ThreadManager::EnqueueTask(Task *task, TaskType taskType) {
}
void ThreadManager::EnqueueTaskOnThread(int threadNum, Task *task, TaskType taskType) {
_assert_(threadNum >= 0 && threadNum < (int)global_->threads_.size())
_assert_(threadNum >= 0 && threadNum < (int)global_->threads_.size());
ThreadContext *thread = global_->threads_[threadNum];
{
std::unique_lock<std::mutex> lock(thread->mutex);