summaryrefslogtreecommitdiff
path: root/vos
diff options
context:
space:
mode:
authorJörg Budischewski <jbu@openoffice.org>2001-06-08 15:00:19 +0000
committerJörg Budischewski <jbu@openoffice.org>2001-06-08 15:00:19 +0000
commitd11a3b40d8c9b4a1a704025ad1357e65f21f6476 (patch)
tree9a67ebc7a28a9103b3aac722c2f3775fcaba8b64 /vos
parent001fdfd299e9fe06fafd1088f7f5cc539533f832 (diff)
#87994# osl_freeThreadHandle() is replaced by osl_destroyThread
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();
}
}