summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-31 16:25:52 +0200
committerNoel Grandin <noel@peralex.com>2016-09-01 11:05:21 +0200
commitf651ea26eaa6b2a5b3dd1892397fbb1fac157d1d (patch)
treebd84a4546f66329ad4e733fcdd4f46f89a952350 /cppu
parent29285b3e9c96fdf11aac3be1ebf5ec7303b56027 (diff)
std::list<sal_Int64> -> std::deque
Change-Id: Ib34d6bf97fc97ea1c30c184a7de4ace7f533065f
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/threadpool/jobqueue.cxx2
-rw-r--r--cppu/source/threadpool/jobqueue.hxx5
2 files changed, 3 insertions, 4 deletions
diff --git a/cppu/source/threadpool/jobqueue.cxx b/cppu/source/threadpool/jobqueue.cxx
index 447b0a20a532..2d375dcf8bbd 100644
--- a/cppu/source/threadpool/jobqueue.cxx
+++ b/cppu/source/threadpool/jobqueue.cxx
@@ -129,7 +129,7 @@ namespace cppu_threadpool {
void JobQueue::dispose( sal_Int64 nDisposeId )
{
MutexGuard guard( m_mutex );
- for( CallStackList::iterator ii = m_lstCallstack.begin() ;
+ for( auto ii = m_lstCallstack.begin() ;
ii != m_lstCallstack.end() ;
++ii )
{
diff --git a/cppu/source/threadpool/jobqueue.hxx b/cppu/source/threadpool/jobqueue.hxx
index 6d357986e254..9b73052e9470 100644
--- a/cppu/source/threadpool/jobqueue.hxx
+++ b/cppu/source/threadpool/jobqueue.hxx
@@ -21,6 +21,7 @@
#define INCLUDED_CPPU_SOURCE_THREADPOOL_JOBQUEUE_HXX
#include <list>
+#include <deque>
#include <memory>
#include <sal/types.h>
@@ -39,8 +40,6 @@ namespace cppu_threadpool
typedef ::std::list < struct Job > JobList;
- typedef ::std::list < sal_Int64 > CallStackList;
-
class DisposedCallerAdmin;
typedef std::shared_ptr<DisposedCallerAdmin> DisposedCallerAdminHolder;
@@ -64,7 +63,7 @@ namespace cppu_threadpool
private:
mutable ::osl::Mutex m_mutex;
JobList m_lstJob;
- CallStackList m_lstCallstack;
+ std::deque<sal_Int64> m_lstCallstack;
sal_Int32 m_nToDo;
bool m_bSuspended;
osl::Condition m_cndWait;