diff options
author | Mohan Embar <gnustuff@thisiscool.com> | 2004-09-11 19:13:51 +0000 |
---|---|---|
committer | Mohan Embar <membar@gcc.gnu.org> | 2004-09-11 19:13:51 +0000 |
commit | a0be84dd8c0a461050ab96d8c563c9e9482e0107 (patch) | |
tree | d727f36c523c4585200ec6eedd2eaf6e8968aede /libjava/include | |
parent | bdbf6060ea5df98ab2a6cd4be0c99e347b65e737 (diff) | |
download | gcc-a0be84dd8c0a461050ab96d8c563c9e9482e0107.tar.gz |
re PR libgcj/14751 ([win32] thread creation leaks system handle resources)
PR libgcj/14751
* win32-threads.cc (_Jv_ThreadInitData): Zero out thread
handle in newly-allocated _Jv_Thread_t.
(_Jv_ThreadDestroyData): Close thread handle.
(_Jv_ThreadStart): Remove obsolete comment.
Store handle of newly-created thread in _Jv_Thread_t.
* include/win32-threads.h: #define WIN32_LEAN_AND_MEAN
before including <windows.h>
#define _Jv_HaveCondDestroy
From-SVN: r87362
Diffstat (limited to 'libjava/include')
-rw-r--r-- | libjava/include/win32-threads.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libjava/include/win32-threads.h b/libjava/include/win32-threads.h index fdd21c541b4..ba9def10d68 100644 --- a/libjava/include/win32-threads.h +++ b/libjava/include/win32-threads.h @@ -13,6 +13,7 @@ details. */ #ifndef __JV_WIN32_THREADS__ #define __JV_WIN32_THREADS__ +#define WIN32_LEAN_AND_MEAN #include <windows.h> // @@ -75,6 +76,7 @@ typedef void _Jv_ThreadStartFunc (java::lang::Thread *); // Condition variables. // +#define _Jv_HaveCondDestroy int _Jv_CondWait (_Jv_ConditionVariable_t *cv, _Jv_Mutex_t *mu, jlong millis, jint nanos); void _Jv_CondInit (_Jv_ConditionVariable_t *cv); void _Jv_CondDestroy (_Jv_ConditionVariable_t *cv); |