summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/thread/thr_private.h')
-rw-r--r--lib/libthr/thread/thr_private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h
index ff9f52b..7c1d005 100644
--- a/lib/libthr/thread/thr_private.h
+++ b/lib/libthr/thread/thr_private.h
@@ -384,6 +384,9 @@ struct pthread {
/* New thread should unblock SIGCANCEL. */
int unblock_sigcancel;
+ /* Force new thread to exit. */
+ int force_exit;
+
/* Thread state: */
enum pthread_state state;
@@ -668,6 +671,8 @@ int _schedparam_to_rtp(int policy, const struct sched_param *param,
void _thread_bp_create(void);
void _thread_bp_death(void);
int _sched_yield(void);
+int _pthread_getaffinity_np(pthread_t, size_t, cpuset_t *);
+int _pthread_setaffinity_np(pthread_t, size_t, const cpuset_t *);
/* #include <fcntl.h> */
#ifdef _SYS_FCNTL_H_
OpenPOWER on IntegriCloud