summaryrefslogtreecommitdiffstats
path: root/cppu/source/threadpool/threadpool.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppu/source/threadpool/threadpool.cxx')
-rw-r--r--cppu/source/threadpool/threadpool.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/cppu/source/threadpool/threadpool.cxx b/cppu/source/threadpool/threadpool.cxx
index a508f56e6aec..853325bb69f3 100644
--- a/cppu/source/threadpool/threadpool.cxx
+++ b/cppu/source/threadpool/threadpool.cxx
@@ -158,7 +158,7 @@ namespace cppu_threadpool
// thread wasn't reused, remove it from the list
WaitingThreadList::iterator ii = find(
m_lstThreads.begin(), m_lstThreads.end(), &waitingThread );
- OSL_ASSERT( ii != m_lstThreads.end() );
+ assert( ii != m_lstThreads.end() );
m_lstThreads.erase( ii );
}
}
@@ -212,7 +212,7 @@ namespace cppu_threadpool
MutexGuard guard( m_mutex );
ThreadIdHashMap::iterator ii = m_mapQueue.find( aThreadId );
- OSL_ASSERT( ii != m_mapQueue.end() );
+ assert( ii != m_mapQueue.end() );
if( bAsynchron )
{
@@ -266,7 +266,7 @@ namespace cppu_threadpool
{
m_mapQueue[ aThreadId ] = pair < JobQueue * , JobQueue * > ( nullptr , nullptr );
ii = m_mapQueue.find( aThreadId );
- OSL_ASSERT( ii != m_mapQueue.end() );
+ assert( ii != m_mapQueue.end() );
}
if( bAsynchron )
@@ -323,11 +323,11 @@ namespace cppu_threadpool
ThreadIdHashMap::iterator ii = m_mapQueue.find( aThreadId );
- OSL_ASSERT( ii != m_mapQueue.end() );
+ assert( ii != m_mapQueue.end() );
pQueue = (*ii).second.first;
}
- OSL_ASSERT( pQueue );
+ assert( pQueue );
void *pReturn = pQueue->enter( nDisposeId );
if( pQueue->isCallstackEmpty() )
@@ -477,12 +477,12 @@ uno_threadpool_destroy( uno_ThreadPool hPool ) SAL_THROW_EXTERN_C()
bool empty;
{
- OSL_ASSERT( g_pThreadpoolHashSet );
+ assert( g_pThreadpoolHashSet );
MutexGuard guard( Mutex::getGlobalMutex() );
ThreadpoolHashSet::iterator ii = g_pThreadpoolHashSet->find( hPool );
- OSL_ASSERT( ii != g_pThreadpoolHashSet->end() );
+ assert( ii != g_pThreadpoolHashSet->end() );
g_pThreadpoolHashSet->erase( ii );
delete hPool;