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
commitf599a00dc351b5b3b587b6fec9dce7ed07465810 (patch)
tree9b6d4d5c837ddb81b655859bdc3f2da27f6164b6 /cppu/source/threadpool/thread.hxx
parentfa52d06b71d558a910a046cc2a1368d6b55e75cd (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 0c2f59bb7..c8bb15e3e 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;