This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
* include/boehm-gc.h (_Jv_SuspendThread): Declare. (_Jv_ResumeThread): Declare. * boehm-gc.cc (_Jv_SuspnedThread): New function. (_Jv_ResumeThread): New function.
+ void
+ _Jv_SuspendThread (pthread_t thread)
+ {
+ if (thread == pthread_self ())
+ GC_suspend_self ();
+ else
+ GC_suspend_thread (thread);
+ }
+
+ void
+ _Jv_ResumeThread (pthread_t thread)
+ {
+ GC_resume_thread (thread);
+ }| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |