diff options
author | Adam Megacz <adam@xwt.org> | 2002-02-07 03:56:40 +0000 |
---|---|---|
committer | Adam Megacz <megacz@gcc.gnu.org> | 2002-02-07 03:56:40 +0000 |
commit | b1d246853d409848c890a85bc0f45bbc75c9899d (patch) | |
tree | 6c3ed013c8e8ef078276d9712ba1ca29f2699f19 /boehm-gc/misc.c | |
parent | b5ee195f1e3f11a5979841bedbf932926ffe5322 (diff) | |
download | gcc-b1d246853d409848c890a85bc0f45bbc75c9899d.zip gcc-b1d246853d409848c890a85bc0f45bbc75c9899d.tar.gz gcc-b1d246853d409848c890a85bc0f45bbc75c9899d.tar.bz2 |
gc.h: (GC_CreateThread) This function is now exposed on all Win32 platforms.
2002-02-06 Adam Megacz <adam@xwt.org>
* boehm-gc/include/gc.h: (GC_CreateThread) This function is
now exposed on all Win32 platforms.
* boehm-gc/win32_threads.c: (GC_CreateThread) This now
compiles on Win32; it invokes CreateThread() if GC is built
as a DLL; otherwise it registers the thread.
* boehm-gc/misc.c (GC_init): Initialize GC_allocate_ml in case
libgcjgc was not built as a DLL.
From-SVN: r49563
Diffstat (limited to 'boehm-gc/misc.c')
-rw-r--r-- | boehm-gc/misc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/boehm-gc/misc.c b/boehm-gc/misc.c index 2bb93f3..06d7085 100644 --- a/boehm-gc/misc.c +++ b/boehm-gc/misc.c @@ -436,6 +436,11 @@ void GC_init() DCL_LOCK_STATE; DISABLE_SIGNALS(); + +#ifdef MSWIN32 + if (!GC_is_initialized) InitializeCriticalSection(&GC_allocate_ml); +#endif /* MSWIN32 */ + LOCK(); GC_init_inner(); UNLOCK(); |