summaryrefslogtreecommitdiff
path: root/cppu/source/threadpool/thread.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-11 10:41:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-11 12:37:08 +0100
commit521a9f6f76a135928806355e981eeb7860b2fbe7 (patch)
treeb28a92b9e74bb79afdaee0a046a2560efecf5fc1 /cppu/source/threadpool/thread.hxx
parent2f68ee59b2a2a35433925626fa4a155b68ddb6f7 (diff)
#i107490# cppu lifecycle cleanup
Diffstat (limited to 'cppu/source/threadpool/thread.hxx')
-rw-r--r--cppu/source/threadpool/thread.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/cppu/source/threadpool/thread.hxx b/cppu/source/threadpool/thread.hxx
index 639f26c5339b..2f7791daf7e5 100644
--- a/cppu/source/threadpool/thread.hxx
+++ b/cppu/source/threadpool/thread.hxx
@@ -37,6 +37,8 @@
namespace cppu_threadpool {
class JobQueue;
+ class ThreadAdmin;
+ typedef boost::shared_ptr<ThreadAdmin> ThreadAdminHolder;
//-----------------------------------------
// private thread class for the threadpool
@@ -61,6 +63,7 @@ namespace cppu_threadpool {
private:
oslThread m_thread;
+ ThreadAdminHolder m_aThreadAdmin;
JobQueue *m_pQueue;
::rtl::ByteSequence m_aThreadId;
sal_Bool m_bAsynchron;
@@ -71,7 +74,7 @@ namespace cppu_threadpool {
{
public:
~ThreadAdmin ();
- static ThreadAdmin *getInstance();
+ static ThreadAdminHolder &getInstance();
void add( ORequestThread * );
void remove( ORequestThread * );
void join();