summaryrefslogtreecommitdiff
path: root/sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx')
-rwxr-xr-x[-rw-r--r--]sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx46
1 files changed, 0 insertions, 46 deletions
diff --git a/sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx b/sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx
index 349d2813c0cb..e0f519860cad 100644..100755
--- a/sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx
+++ b/sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx
@@ -129,7 +129,6 @@ template <class Queue, class Request, class Cache, class Factory>
mrQueue (rQueue),
mrCache (rCache)
{
- OSL_TRACE("QueueProcessorThread::constructor %p", this);
create();
}
@@ -140,7 +139,6 @@ template <class Queue, class Request, class Cache, class Factory>
QueueProcessorThread<Queue, Request, Cache, Factory>
::~QueueProcessorThread (void)
{
- OSL_TRACE("QueueProcessorThread::destructor %p", this);
}
@@ -149,16 +147,12 @@ template <class Queue, class Request, class Cache, class Factory>
template <class Queue, class Request, class Cache, class Factory>
void SAL_CALL QueueProcessorThread<Queue, Request, Cache, Factory>::run (void)
{
- OSL_TRACE("QueueProcessorThread::run(): running thread %p", this);
while ( ! mbIsTerminated)
{
- OSL_TRACE("QueueProcessorThread::run(): still running thread %p: %d", this, mbIsTerminated?1:0);
if (mrQueue.IsEmpty())
{
// Sleep while the queue is empty.
- OSL_TRACE("QueueProcessorThread::run(): suspending thread %p", this);
suspend();
- OSL_TRACE("QueueProcessorThread::run(): running again thread %p", this);
}
else if (GetpApp()->AnyInput())
@@ -169,19 +163,15 @@ void SAL_CALL QueueProcessorThread<Queue, Request, Cache, Factory>::run (void)
TimeValue aTimeToWait;
aTimeToWait.Seconds = 0;
aTimeToWait.Nanosec = 50*1000*1000;
- OSL_TRACE("QueueProcessorThread::run(): input pending: waiting %d nanoseconds",
- aTimeToWait.Nanosec);
wait (aTimeToWait);
}
else
{
- OSL_TRACE ("QueueProcessorThread::run(): Processing Query");
ProcessQueueEntry();
yield ();
}
}
- OSL_TRACE("QueueProcessorThread::run(): exiting run %p", this);
}
@@ -197,7 +187,6 @@ void QueueProcessorThread<Queue, Request, Cache, Factory>
do
{
- OSL_TRACE ("QueueProcessorThread::ProcessQueueEntry(): testing for mbIsTerminated %p", this);
{
::osl::MutexGuard aGuard (maMutex);
if (mbIsTerminated)
@@ -205,7 +194,6 @@ void QueueProcessorThread<Queue, Request, Cache, Factory>
if (mrQueue.IsEmpty())
break;
}
- OSL_TRACE ("QueueProcessorThread::ProcessQueueEntry():acquiring mutex for bitmap creation %p", this);
SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard (maMutex);
if (mbIsTerminated)
@@ -214,18 +202,12 @@ void QueueProcessorThread<Queue, Request, Cache, Factory>
if (mrQueue.IsEmpty())
break;
- OSL_TRACE ("QueueProcessorThread::ProcessQueueEntry(): have mutexes %p", this);
-
// Get the requeuest with the highest priority from the queue.
nPriorityClass = mrQueue.GetFrontPriorityClass();
pRequest = &mrQueue.GetFront();
mrQueue.PopFront();
bRequestIsValid = true;
-
- OSL_TRACE ("QueueProcessorThread::ProcessQueueEntry():using request %p for creating bitmap", pRequest);
- OSL_TRACE ("QueueProcessorThread::ProcessQueueEntry():processing request for page %d with priority class ",
- pRequest->GetPage()->GetPageNum(), nPriorityClass);
try
{
// Create a new preview bitmap and store it in the cache.
@@ -261,7 +243,6 @@ void QueueProcessorThread<
Queue, RequestData, BitmapCache, BitmapFactory
>::Start (void)
{
- OSL_TRACE ("QueueProcessorThread::Start %p", this);
resume ();
}
@@ -276,7 +257,6 @@ void QueueProcessorThread<
Queue, RequestData, BitmapCache, BitmapFactory
>::Stop (void)
{
- OSL_TRACE ("QueueProcessorThread::Stop %p", this);
suspend();
}
@@ -291,7 +271,6 @@ void QueueProcessorThread<
Queue, RequestData, BitmapCache, BitmapFactory
>::RemoveRequest (RequestData& rRequest)
{
- OSL_TRACE ("QueueProcessorThread::RemoveRequest %p", this);
// Do nothing else then wait for the mutex to be released.
::osl::MutexGuard aGuard (mrQueue.GetMutex());
}
@@ -308,11 +287,9 @@ void QueueProcessorThread<
>::Terminate (void)
{
// SolarMutexGuard aSolarGuard;
- OSL_TRACE("QueueProcessorThread::Terminate(): terminating thread %p", this);
::osl::Thread::terminate ();
{
::osl::MutexGuard aGuard (maMutex);
- OSL_TRACE("QueueProcessorThread::Terminate(): starting to join %p, %d", this, mbIsTerminated?1:0);
mbIsTerminated = true;
}
Start();
@@ -333,29 +310,6 @@ void SAL_CALL QueueProcessorThread<
{
::osl::MutexGuard aGuard (maMutex);
mbCanBeJoined = true;
- /*
- OSL_TRACE("QueueProcessorThread::Terminate():join %p, %d", this, mbIsTerminated?1:0);
- while (true)
- {
- {
- ::osl::MutexGuard aGuard (maMutex);
- if (mbCanBeJoined)
- break;
- }
- Start();
- TimeValue aTimeToWait;
- aTimeToWait.Seconds = 0;
- aTimeToWait.Nanosec = 50*1000*1000;
- OSL_TRACE("QueueProcessorThread::Terminate(): waiting for join");
- wait (aTimeToWait);
- }
- if (mbCanBeJoined)
- join();
- else
- OSL_TRACE("Can not join");
- OSL_TRACE("QueueProcessorThread::Terminate():terminated thread %p :%d",
- this, mbIsTerminated?1:0);
- */
}