diff options
Diffstat (limited to 'sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx')
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx b/sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx index 08ca63284ea6..d3a6a7443001 100644 --- a/sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx +++ b/sd/source/ui/slidesorter/cache/SlsQueueProcessorThread.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -40,17 +40,17 @@ class SlideSorterView; namespace sd { namespace slidesorter { namespace cache { -template <class Queue, - class RequestData, - class BitmapCache, +template <class Queue, + class RequestData, + class BitmapCache, class BitmapFactory> -class QueueProcessorThread +class QueueProcessorThread : public ::osl::Thread { public: QueueProcessorThread ( - view::SlideSorterView& rView, - Queue& rQueue, + view::SlideSorterView& rView, + Queue& rQueue, BitmapCache& rCache); ~QueueProcessorThread (void); @@ -80,19 +80,19 @@ public: void SAL_CALL Terminate (void); protected: - /** This virutal method is called (among others?) from the + /** This virutal method is called (among others?) from the inherited create method and acts as the main function of this thread. */ virtual void SAL_CALL run (void); - /** Called after the thread is terminated via the terminate + /** Called after the thread is terminated via the terminate method. Used to kill the thread by calling delete on this. - */ + */ virtual void SAL_CALL onTerminated (void); private: - /** Flag that indicates wether the onTerminated method has been already + /** Flag that indicates wether the onTerminated method has been already called. If so then a subsequent call to detach deletes the thread. */ volatile bool mbIsTerminated; @@ -168,7 +168,7 @@ 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", + OSL_TRACE("QueueProcessorThread::run(): input pending: waiting %d nanoseconds", aTimeToWait.Nanosec); wait (aTimeToWait); } @@ -193,7 +193,7 @@ void QueueProcessorThread<Queue, Request, Cache, Factory> Request* pRequest = NULL; int nPriorityClass; bool bRequestIsValid = false; - + do { OSL_TRACE ("QueueProcessorThread::ProcessQueueEntry(): testing for mbIsTerminated %p", this); @@ -214,7 +214,7 @@ void QueueProcessorThread<Queue, Request, Cache, Factory> 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(); @@ -223,7 +223,7 @@ void QueueProcessorThread<Queue, Request, Cache, Factory> OSL_TRACE ("QueueProcessorThread::ProcessQueueEntry():using request %p for creating bitmap", pRequest); - OSL_TRACE ("QueueProcessorThread::ProcessQueueEntry():processing request for page %d with priority class ", + OSL_TRACE ("QueueProcessorThread::ProcessQueueEntry():processing request for page %d with priority class ", pRequest->GetPage()->GetPageNum(), nPriorityClass); try { @@ -252,9 +252,9 @@ void QueueProcessorThread<Queue, Request, Cache, Factory> -template <class Queue, - class RequestData, - class BitmapCache, +template <class Queue, + class RequestData, + class BitmapCache, class BitmapFactory> void QueueProcessorThread< Queue, RequestData, BitmapCache, BitmapFactory @@ -267,9 +267,9 @@ void QueueProcessorThread< -template <class Queue, - class RequestData, - class BitmapCache, +template <class Queue, + class RequestData, + class BitmapCache, class BitmapFactory> void QueueProcessorThread< Queue, RequestData, BitmapCache, BitmapFactory @@ -282,9 +282,9 @@ void QueueProcessorThread< -template <class Queue, - class RequestData, - class BitmapCache, +template <class Queue, + class RequestData, + class BitmapCache, class BitmapFactory> void QueueProcessorThread< Queue, RequestData, BitmapCache, BitmapFactory @@ -298,9 +298,9 @@ void QueueProcessorThread< -template <class Queue, - class RequestData, - class BitmapCache, +template <class Queue, + class RequestData, + class BitmapCache, class BitmapFactory> void QueueProcessorThread< Queue, RequestData, BitmapCache, BitmapFactory @@ -322,9 +322,9 @@ void QueueProcessorThread< /** This callback method is called when the run() method terminates. */ -template <class Queue, - class RequestData, - class BitmapCache, +template <class Queue, + class RequestData, + class BitmapCache, class BitmapFactory> void SAL_CALL QueueProcessorThread< Queue, RequestData, BitmapCache, BitmapFactory |