std::list<sal_Int64> -> std::deque

Change-Id: Ib34d6bf97fc97ea1c30c184a7de4ace7f533065f
This commit is contained in:
Noel Grandin
2016-08-31 16:25:52 +02:00
parent 29285b3e9c
commit f651ea26ea
2 changed files with 3 additions and 4 deletions

View File

@@ -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 )
{

View File

@@ -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;