diff options
Diffstat (limited to 'libjava/boehm.cc')
-rw-r--r-- | libjava/boehm.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libjava/boehm.cc b/libjava/boehm.cc index 66860dd50da..3aa0acba987 100644 --- a/libjava/boehm.cc +++ b/libjava/boehm.cc @@ -722,6 +722,17 @@ _Jv_ResumeThread (_Jv_Thread_t *thread) #endif } +int +_Jv_IsThreadSuspended (_Jv_Thread_t *thread) +{ +#if defined(GC_PTHREADS) && !defined(GC_SOLARIS_THREADS) \ + && !defined(GC_WIN32_THREADS) && !defined(GC_DARWIN_THREADS) + return GC_is_thread_suspended (_Jv_GetPlatformThreadID (thread)); +#else + return 0; +#endif +} + void _Jv_GCAttachThread () { |