summaryrefslogtreecommitdiff
path: root/vos
diff options
context:
space:
mode:
Diffstat (limited to 'vos')
-rw-r--r--vos/source/thread.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/vos/source/thread.cxx b/vos/source/thread.cxx
index 7a085fd8eaf6..9038209aed55 100644
--- a/vos/source/thread.cxx
+++ b/vos/source/thread.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: thread.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: obr $ $Date: 2001-05-14 09:44:09 $
+ * last change: $Author: jbu $ $Date: 2001-06-08 16:00:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -122,10 +122,7 @@ OThread::~OThread()
{
if (m_hThread != 0)
{
- if (! m_bTerminating)
- kill();
-
- osl_freeThreadHandle(m_hThread);
+ osl_destroyThread(m_hThread);
}
osl_destroyCondition( m_aCondition );
@@ -236,7 +233,8 @@ void OThread::kill()
// flag we are shutting down
m_bTerminating = sal_True;
- osl_destroyThread(m_hThread);
+ terminate();
+ join();
}
}