diff options
author | deischen <deischen@FreeBSD.org> | 2003-05-04 16:17:01 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2003-05-04 16:17:01 +0000 |
commit | ca059a5aeaae9d5813d714fca45f1aad81e33e85 (patch) | |
tree | 3d8c66d5e73ff5869e8a7e1754ef39d0b512e848 /lib/libpthread/thread/thr_private.h | |
parent | 03349278af97760ebfaacb5221dad9cb7aff9b88 (diff) | |
download | FreeBSD-src-ca059a5aeaae9d5813d714fca45f1aad81e33e85.zip FreeBSD-src-ca059a5aeaae9d5813d714fca45f1aad81e33e85.tar.gz |
Fix suspend and resume.
Submitted (in part) by: Kazuaki Oda <kaakun@highway.ne.jp>
Diffstat (limited to 'lib/libpthread/thread/thr_private.h')
-rw-r--r-- | lib/libpthread/thread/thr_private.h | 5 |
1 files changed, 5 insertions, 0 deletions
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. |