summaryrefslogtreecommitdiff
path: root/sal/osl/w32/thread.c
diff options
context:
space:
mode:
authorJörg Budischewski <jbu@openoffice.org>2001-06-08 14:51:01 +0000
committerJörg Budischewski <jbu@openoffice.org>2001-06-08 14:51:01 +0000
commitfa6dc725513aa93df54dd302e40107b0cd4e1749 (patch)
treef1fc68ae6de002f9746b611dcbb14a6500bbac74 /sal/osl/w32/thread.c
parent9dc628abcdfd91dd3e99e21c48d5371eb680d605 (diff)
#87994# osl_freeThreadHandle() is made non-functional, osl_destroyThread does not kill the thread anymore
Diffstat (limited to 'sal/osl/w32/thread.c')
-rw-r--r--sal/osl/w32/thread.c28
1 files changed, 8 insertions, 20 deletions
diff --git a/sal/osl/w32/thread.c b/sal/osl/w32/thread.c
index 00aea97ef553..29cbc8a20c13 100644
--- a/sal/osl/w32/thread.c
+++ b/sal/osl/w32/thread.c
@@ -2,9 +2,9 @@
*
* $RCSfile: thread.c,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: obr $ $Date: 2001-06-01 15:02:14 $
+ * last change: $Author: jbu $ $Date: 2001-06-08 15:46:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -207,11 +207,11 @@ void SAL_CALL osl_destroyThread(oslThread Thread)
return;
}
- if (pThreadImpl->m_hThread != 0) /* valid handle ? */
- {
- /* cancel thread */
- TerminateThread(pThreadImpl->m_hThread, 0);
- }
+ /* !!!! _exitthreadex does _not_ call CloseHandle !!! */
+ CloseHandle( pThreadImpl->m_hThread );
+
+ /* free memory */
+ free(Thread);
}
/*****************************************************************************/
@@ -219,19 +219,7 @@ void SAL_CALL osl_destroyThread(oslThread Thread)
/*****************************************************************************/
void SAL_CALL osl_freeThreadHandle(oslThread Thread)
{
- osl_TThreadImpl* pThreadImpl= (osl_TThreadImpl*)Thread;
-
- if(Thread == 0) /* valid ptr? */
- {
- /* thread already destroyed or not created */
- return;
- }
-
- /* !!!! _exitthreadex does _not_ call CloseHandle !!! */
- CloseHandle( pThreadImpl->m_hThread );
-
- /* free memory */
- free(Thread);
+ OSL_ENSURE( 0 , "osl_freeThreadHandle: deprecated, should not be called !" );
}
/*****************************************************************************/