diff options
author | Adam Megacz <adam@xwt.org> | 2002-10-21 01:50:14 +0000 |
---|---|---|
committer | Adam Megacz <megacz@gcc.gnu.org> | 2002-10-21 01:50:14 +0000 |
commit | e2a450f6e8c771989af3968aa22ece380599fc0f (patch) | |
tree | 960e614a2d2f3c110370c390a6f39f1130020f9f /libjava/include | |
parent | 6d0b22ecb056bc99d7ec46a6f2e677a1850a9693 (diff) | |
download | gcc-e2a450f6e8c771989af3968aa22ece380599fc0f.zip gcc-e2a450f6e8c771989af3968aa22ece380599fc0f.tar.gz gcc-e2a450f6e8c771989af3968aa22ece380599fc0f.tar.bz2 |
aclocal.m4 (CHECK_FOR_BROKEN_MINGW_LD): added
2002-10-20 Adam Megacz <adam@xwt.org>
* aclocal.m4 (CHECK_FOR_BROKEN_MINGW_LD): added
* configure.in: enabled hash sync on Win32
* include/win32-threads.h (_Jv_ThreadId_t): added.
* java/lang/natObject.cc (_Jv_MonitorEnter, _Jv_MonitorExit,
heavy_lock_obj_finalization_proc, wait, notify, notifyAll):
removed some posix-isms, use Thread::sleep() instead of usleep,
added code to clear bottom three bits if platform has a broken
linker. * include/win32-threads.h (_Jv_ThreadId_t): added.
From-SVN: r58344
Diffstat (limited to 'libjava/include')
-rw-r--r-- | libjava/include/config.h.in | 11 | ||||
-rw-r--r-- | libjava/include/win32-threads.h | 8 |
2 files changed, 15 insertions, 4 deletions
diff --git a/libjava/include/config.h.in b/libjava/include/config.h.in index 612a2bf..cd770f9 100644 --- a/libjava/include/config.h.in +++ b/libjava/include/config.h.in @@ -1,4 +1,4 @@ -/* include/config.h.in. Generated automatically from configure.in by autoheader. */ +/* include/config.h.in. Generated automatically from configure.in by autoheader 2.13. */ /* Define if using alloca.c. */ #undef C_ALLOCA @@ -343,12 +343,12 @@ /* Define if you have the <locale.h> header file. */ #undef HAVE_LOCALE_H -/* Define if you have the <netdb.h> header file. */ -#undef HAVE_NETDB_H - /* Define if you have the <net/if.h> header file. */ #undef HAVE_NET_IF_H +/* Define if you have the <netdb.h> header file. */ +#undef HAVE_NETDB_H + /* Define if you have the <netinet/in.h> header file. */ #undef HAVE_NETINET_IN_H @@ -394,6 +394,9 @@ /* Define if the compiler is configured for setjmp/longjmp exceptions. */ #undef SJLJ_EXCEPTIONS +/* Indicate that linker is not able to 8-byte align static data */ +#undef JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS + /* Required define if using POSIX threads */ #undef _REENTRANT diff --git a/libjava/include/win32-threads.h b/libjava/include/win32-threads.h index 21fdd0e..e8cf805 100644 --- a/libjava/include/win32-threads.h +++ b/libjava/include/win32-threads.h @@ -33,6 +33,14 @@ typedef struct java::lang::Thread *thread_obj; } _Jv_Thread_t; +typedef DWORD _Jv_ThreadId_t; + +inline _Jv_ThreadId_t +_Jv_ThreadSelf (void) +{ + return GetCurrentThreadId(); +} + typedef void _Jv_ThreadStartFunc (java::lang::Thread *); // |