mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-22 02:39:05 +02:00
Android: Fix logical CPU count.
Otherwise bad things happen.
This commit is contained in:
1 parent
cdcd77a931
commit
8ae3f5eb41
4 files changed
+3
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user