aboutsummaryrefslogtreecommitdiff
path: root/src/util/thread.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-03-05 20:54:36 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-03-17 17:12:20 +0100
commit2f0107f4a7e82019a68ae3c0572886622d9d49bf (patch)
tree58e9aa428df19e23dc2db3d8577107e193dba3c6 /src/util/thread.h
parent94b3950958c643c39c60b382c85f833593a718d0 (diff)
downloadminetest-2f0107f4a7e82019a68ae3c0572886622d9d49bf.tar.gz
minetest-2f0107f4a7e82019a68ae3c0572886622d9d49bf.tar.bz2
minetest-2f0107f4a7e82019a68ae3c0572886622d9d49bf.zip
MutexedQueue inherits must use std::deque instead of std::list
Diffstat (limited to 'src/util/thread.h')
-rw-r--r--src/util/thread.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/thread.h b/src/util/thread.h
index 8b3c33621..eda9c0ca2 100644
--- a/src/util/thread.h
+++ b/src/util/thread.h
@@ -130,9 +130,9 @@ public:
/*
If the caller is already on the list, only update CallerData
*/
- for(typename std::list< GetRequest<Key, T, Caller, CallerData> >::iterator
- i = m_queue.getList().begin();
- i != m_queue.getList().end(); ++i)
+ for(typename std::deque< GetRequest<Key, T, Caller, CallerData> >::iterator
+ i = m_queue.getQueue().begin();
+ i != m_queue.getQueue().end(); ++i)
{
GetRequest<Key, T, Caller, CallerData> &request = *i;