summaryrefslogtreecommitdiff
path: root/cppu/source/threadpool/thread.hxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-04-19 12:49:20 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-04-19 12:49:20 +0000
commit0c047c75dea79825fc3c1e6fd84a966d65c74068 (patch)
tree59505581d9a91bd9888e527bfbe185747f9ed877 /cppu/source/threadpool/thread.hxx
parentbeeba4adcdd2f91d032e689da49b8c32eb6433ce (diff)
INTEGRATION: CWS sb49 (1.4.40); FILE MERGED
2006/03/22 10:14:06 sb 1.4.40.1: #i63397# Keep objects alive long enough so that threads still running while atexit handlers are processed do not access dead objects.
Diffstat (limited to 'cppu/source/threadpool/thread.hxx')
-rw-r--r--cppu/source/threadpool/thread.hxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/cppu/source/threadpool/thread.hxx b/cppu/source/threadpool/thread.hxx
index eebb3928fe55..5a08c97bc6af 100644
--- a/cppu/source/threadpool/thread.hxx
+++ b/cppu/source/threadpool/thread.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: thread.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 08:47:30 $
+ * last change: $Author: hr $ $Date: 2006-04-19 13:49:20 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -37,6 +37,9 @@
#include <list>
+#ifndef _RTL_REF_HXX_
+#include "rtl/ref.hxx"
+#endif
#ifndef _SAL_TYPES_H_
#include <sal/types.h>
#endif
@@ -48,6 +51,7 @@
namespace cppu_threadpool {
class JobQueue;
+ class ThreadPool;
//-----------------------------------------
// private thread class for the threadpool
@@ -56,7 +60,8 @@ namespace cppu_threadpool {
class ORequestThread
{
public:
- ORequestThread( JobQueue * ,
+ ORequestThread( rtl::Reference< ThreadPool > const & threadPool,
+ JobQueue * pQueue,
const ::rtl::ByteSequence &aThreadId,
sal_Bool bAsynchron );
~ORequestThread();
@@ -72,6 +77,7 @@ namespace cppu_threadpool {
private:
oslThread m_thread;
+ rtl::Reference< ThreadPool > m_threadPool;
JobQueue *m_pQueue;
::rtl::ByteSequence m_aThreadId;
sal_Bool m_bAsynchron;