diff options
author | Keith Seitz <keiths@redhat.com> | 2006-06-19 14:10:02 +0000 |
---|---|---|
committer | Keith Seitz <kseitz@gcc.gnu.org> | 2006-06-19 14:10:02 +0000 |
commit | 4307d0dbf9a4ad8923df89e857bbe09a8b5edc20 (patch) | |
tree | cba1686875bb38c64a587e119f6080157e135309 /libjava/include/win32-threads.h | |
parent | 7e665d18088d627471f61fd2917f98ff17fccf4b (diff) | |
download | gcc-4307d0dbf9a4ad8923df89e857bbe09a8b5edc20.zip gcc-4307d0dbf9a4ad8923df89e857bbe09a8b5edc20.tar.gz gcc-4307d0dbf9a4ad8923df89e857bbe09a8b5edc20.tar.bz2 |
posix-threads.h (_Jv_ThreadDebugSuspend): Declare.
* include/posix-threads.h (_Jv_ThreadDebugSuspend): Declare.
(_Jv_ThreadDebugResume): Declare.
(_Jv_ThreadDebugSuspendCount): Declare.
* posix-threads.cc (_Jv_ThreadDebugSuspend): New function.
(_Jv_ThreadDebugSuspendCount): New function.
(_Jv_ThreadDebugResume): New function.
* include/win32-threads.h (_Jv_ThreadDebugSuspend): Declare.
(_Jv_ThreadDebugResume): Declare.
(_Jv_ThreadDebugSuspendCount): Declare.
* win32-threads.cc (_Jv_ThreadDebugSuspend): New function.
(_Jv_ThreadDebugSuspendCount): New function.
(_Jv_ThreadDebugResume): New function.
From-SVN: r114769
Diffstat (limited to 'libjava/include/win32-threads.h')
-rw-r--r-- | libjava/include/win32-threads.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libjava/include/win32-threads.h b/libjava/include/win32-threads.h index ba9def1..4089b22 100644 --- a/libjava/include/win32-threads.h +++ b/libjava/include/win32-threads.h @@ -1,7 +1,7 @@ // -*- c++ -*- // win32-threads.h - Defines for using Win32 threads. -/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software +/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2006 Free Software Foundation This file is part of libgcj. @@ -184,6 +184,20 @@ void _Jv_ThreadInterrupt (_Jv_Thread_t *data); // See java/lang/natWin32Process.cc (waitFor) for an example. HANDLE _Jv_Win32GetInterruptEvent (void); +// Increases a thread's suspend count. If the thread's previous +// suspend count was zero, i.e., it is not suspended, this function +// will suspend the thread. This function may be used to suspend +// any thread from any other thread (or suspend itself). +void _Jv_ThreadDebugSuspend (_Jv_Thread_t* data); + +// Decreases a thread's suspend count. If the thread's new thread +// count is zero, the thread is resumed. This function may be used +// by any thread to resume any other thread. +void _Jv_ThreadDebugResume (_Jv_Thread_t* data); + +// Get the suspend count for a thread +jint _Jv_ThreadDebugSuspendCount (_Jv_Thread_t* data); + // Remove defines from <windows.h> that conflict with various things in libgcj code #undef TRUE |