diff options
author | Keith Seitz <keiths@redhat.com> | 2006-07-21 23:45:03 +0000 |
---|---|---|
committer | Keith Seitz <kseitz@gcc.gnu.org> | 2006-07-21 23:45:03 +0000 |
commit | 303f32ccd7cdf2e5cf1035a56599905ace682dbc (patch) | |
tree | d9fcf70f352ec397fa6065457951b478894479a5 /libjava/include | |
parent | 2e5757965dee9def53422009da26f51aa243b18d (diff) | |
download | gcc-303f32ccd7cdf2e5cf1035a56599905ace682dbc.zip gcc-303f32ccd7cdf2e5cf1035a56599905ace682dbc.tar.gz gcc-303f32ccd7cdf2e5cf1035a56599905ace682dbc.tar.bz2 |
boehm.cc (_Jv_SuspendThread): Don't ifdef the function declaration, just the contents.
* boehm.cc (_Jv_SuspendThread): Don't ifdef the function declaration,
just the contents.
(_Jv_ResumeThread): Likewise.
* posix-threads.cc: Revert 2006-06-19 _Jv_ThreadDebugSuspend,
_Jv_ThreadDebugResume, _Jv_ThreadDebugSuspendCount patch. Moving
to JVMTI instead.
* include/posix-threads.h: Likewise.
* win32-threads.cc: Likewise.
* include/win32-threads.h: Likewise.
* jvmti.cc (_Jv_JVMTI_SuspentThread): New function.
(_Jv_JVMTI_ResumeThread): New function.
(_Jv_JVMTI_Interface): Define SuspendThread and ResumeThread.
From-SVN: r115655
Diffstat (limited to 'libjava/include')
-rw-r--r-- | libjava/include/posix-threads.h | 14 | ||||
-rw-r--r-- | libjava/include/win32-threads.h | 14 |
2 files changed, 0 insertions, 28 deletions
diff --git a/libjava/include/posix-threads.h b/libjava/include/posix-threads.h index 8d69652..1f06fc3 100644 --- a/libjava/include/posix-threads.h +++ b/libjava/include/posix-threads.h @@ -374,18 +374,4 @@ void _Jv_ThreadWait (void); void _Jv_ThreadInterrupt (_Jv_Thread_t *data); -// 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); - #endif /* __JV_POSIX_THREADS__ */ diff --git a/libjava/include/win32-threads.h b/libjava/include/win32-threads.h index 27f7b65..4b30683 100644 --- a/libjava/include/win32-threads.h +++ b/libjava/include/win32-threads.h @@ -193,20 +193,6 @@ 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 |