aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trudel <mtrudel@gmx.ch>2006-06-27 19:34:23 +0200
committerThomas Fitzsimmons <fitzsim@gcc.gnu.org>2006-06-27 17:34:23 +0000
commit776862ddc1082808b2053d4e2ceeb445eecebbf1 (patch)
tree70ab9bc94f0c8f07d6d60f3757b90863926212ae
parent10caa6ef967b225ec6e3657a3d76fea35acef0a7 (diff)
boehm.cc (_Jv_SuspendThread, [...]): Define conditionally on GC_PTHREADS...
2006-06-27 Marco Trudel <mtrudel@gmx.ch> * boehm.cc (_Jv_SuspendThread, _Jv_ResumeThread): Define conditionally on GC_PTHREADS, !GC_SOLARIS_THREADS, !GC_WIN32_THREADS and !GC_DARWIN_THREADS. From-SVN: r115036
-rw-r--r--libjava/ChangeLog6
-rw-r--r--libjava/boehm.cc5
2 files changed, 11 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index e6d1bbb69ac..b6cbcf088fe 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-27 Marco Trudel <mtrudel@gmx.ch>
+
+ * boehm.cc (_Jv_SuspendThread, _Jv_ResumeThread): Define
+ conditionally on GC_PTHREADS, !GC_SOLARIS_THREADS,
+ !GC_WIN32_THREADS and !GC_DARWIN_THREADS.
+
2006-06-27 Tom Tromey <tromey@redhat.com>
PR libgcj/28178:
diff --git a/libjava/boehm.cc b/libjava/boehm.cc
index 7b2c031730b..b8bd3a11e18 100644
--- a/libjava/boehm.cc
+++ b/libjava/boehm.cc
@@ -673,6 +673,9 @@ _Jv_RegisterLibForGc (const void *p __attribute__ ((__unused__)))
#endif
}
+#if defined(GC_PTHREADS) && !defined(GC_SOLARIS_THREADS) \
+ && !defined(GC_WIN32_THREADS) && !defined(GC_DARWIN_THREADS)
+
void
_Jv_SuspendThread (_Jv_Thread_t *thread)
{
@@ -684,3 +687,5 @@ _Jv_ResumeThread (_Jv_Thread_t *thread)
{
GC_resume_thread (_Jv_GetPlatformThreadID (thread));
}
+
+#endif