summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-06-06 06:13:50 +0200
committerbunnei <ericbunnie@gmail.com>2014-06-13 15:51:11 +0200
commit780a443b08454b4bf0eb7f5416e361ce95cc7584 (patch)
tree00eb63b909a07c5628df86f409b1f260335fbd46 /src/core/hle/kernel
parentKernel: Updated several member functions to be const (diff)
downloadyuzu-780a443b08454b4bf0eb7f5416e361ce95cc7584.tar
yuzu-780a443b08454b4bf0eb7f5416e361ce95cc7584.tar.gz
yuzu-780a443b08454b4bf0eb7f5416e361ce95cc7584.tar.bz2
yuzu-780a443b08454b4bf0eb7f5416e361ce95cc7584.tar.lz
yuzu-780a443b08454b4bf0eb7f5416e361ce95cc7584.tar.xz
yuzu-780a443b08454b4bf0eb7f5416e361ce95cc7584.tar.zst
yuzu-780a443b08454b4bf0eb7f5416e361ce95cc7584.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/mutex.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp
index 9d909ea01..eee7c4935 100644
--- a/src/core/hle/kernel/mutex.cpp
+++ b/src/core/hle/kernel/mutex.cpp
@@ -100,11 +100,10 @@ bool ReleaseMutexForThread(Mutex* mutex, Handle thread) {
bool ReleaseMutex(Mutex* mutex) {
MutexEraseLock(mutex);
bool woke_threads = false;
- std::vector<Handle>::iterator iter;
// Find the next waiting thread for the mutex...
while (!woke_threads && !mutex->waiting_threads.empty()) {
- iter = mutex->waiting_threads.begin();
+ std::vector<Handle>::iterator iter = mutex->waiting_threads.begin();
woke_threads |= ReleaseMutexForThread(mutex, *iter);
mutex->waiting_threads.erase(iter);
}