From 22099c59a2bcec314301e79cac0488274d3f5f36 Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Mon, 23 Apr 2007 21:12:10 +0000 Subject: no-gc.h (_Jv_IsThreadSuspended): Declare. * include/no-gc.h (_Jv_IsThreadSuspended): Declare. * include/boehm-gc.h (_Jv_IsThreadSuspended): Likewise. * boehm.cc (_Jv_IsThreadSuspended): New function. * nogc.cc (_Jv_IsThreadSuspended): Likewise. * jvmti.cc (_Jv_JVMTI_GetThreadState): New function. (_Jv_JVMTI_Interface): Define GetThreadState. From-SVN: r124082 --- libjava/include/boehm-gc.h | 4 +++- libjava/include/no-gc.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'libjava/include') diff --git a/libjava/include/boehm-gc.h b/libjava/include/boehm-gc.h index 7e61b8e..ed8ac6a 100644 --- a/libjava/include/boehm-gc.h +++ b/libjava/include/boehm-gc.h @@ -1,7 +1,7 @@ // -*- c++ -*- // boehm-gc.h - Defines for Boehm collector. -/* Copyright (C) 1998, 1999, 2002, 2004, 2006 Free Software Foundation +/* Copyright (C) 1998, 1999, 2002, 2004, 2006, 2007 Free Software Foundation This file is part of libgcj. @@ -93,4 +93,6 @@ extern "C" void _Jv_SuspendThread (_Jv_Thread_t *); // Resume a suspended thread. extern "C" void _Jv_ResumeThread (_Jv_Thread_t *); +// Is the given thread suspended? +extern "C" int _Jv_IsThreadSuspended (_Jv_Thread_t *); #endif /* __JV_BOEHM_GC__ */ diff --git a/libjava/include/no-gc.h b/libjava/include/no-gc.h index 193b8ea..ce0ffb8 100644 --- a/libjava/include/no-gc.h +++ b/libjava/include/no-gc.h @@ -1,7 +1,7 @@ // -*- c++ -*- // no-gc.h - Defines for no garbage collector. -/* Copyright (C) 1998, 1999, 2006 Free Software Foundation +/* Copyright (C) 1998, 1999, 2006, 2007 Free Software Foundation This file is part of libgcj. @@ -18,4 +18,6 @@ extern "C" void _Jv_SuspendThread (_Jv_Thread_t *); // Resume a suspended thread. extern "C" void _Jv_ResumeThread (_Jv_Thread_t *); +// Is the given thread suspended? +extern "C" int _Jv_IsThreadSuspended (_Jv_Thread_t *); #endif /* __JV_NO_GC__ */ -- cgit v1.1