From ca059a5aeaae9d5813d714fca45f1aad81e33e85 Mon Sep 17 00:00:00 2001 From: deischen Date: Sun, 4 May 2003 16:17:01 +0000 Subject: Fix suspend and resume. Submitted (in part) by: Kazuaki Oda --- lib/libpthread/thread/thr_private.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/libpthread/thread/thr_private.h') diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h index 22d2445..f1b7fd9 100644 --- a/lib/libpthread/thread/thr_private.h +++ b/lib/libpthread/thread/thr_private.h @@ -953,6 +953,11 @@ do { \ ((thrd)->kse != NULL) && ((thrd)->kse->k_curthread == (thrd)) #define THR_IN_SYNCQ(thrd) (((thrd)->sflags & THR_FLAGS_IN_SYNCQ) != 0) + +#define THR_IS_SUSPENDED(thrd) \ + (((thrd)->state == PS_SUSPENDED) || \ + (((thrd)->flags & THR_FLAGS_SUSPENDED) != 0)) +#define THR_IS_EXITING(thrd) (((thrd)->flags & THR_FLAGS_EXITING) != 0) /* * Global variables for the pthread kernel. -- cgit v1.1