]> granicus.if.org Git - gc/commit
Add test for thread suspend/resume API
authorIvan Maidanski <ivmai@mail.ru>
Mon, 2 Nov 2015 06:31:45 +0000 (09:31 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 19 Nov 2015 22:38:23 +0000 (01:38 +0300)
commit8ff3262b23ff70e7ce53bccb90e20cfd4d39e171
tree8d97d2d748ffdcf7a414773daf6ee26ea7281193
parent9f48082eafc4d54ca33390a72924715b03d7c1dd
Add test for thread suspend/resume API

* tests/test.c (tiny_reverse_test): Call GC_gcollect (only if
GC_ENABLE_SUSPEND_THREAD).
* tests/test.c: Include "javaxfc.h" if GC_ENABLE_SUSPEND_THREAD (and
GC_PTHREADS) to GC_suspend/resume_thread declared.
* tests/test.c (fork_a_thread): Test GC_is_thread_suspended,
GC_suspend_thread, GC_resume_thread (only if the functions defined).
tests/test.c