mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
support: Do not build xpthread_attr_setaffinity_np for hurd
It does not provide pthread_attr_setaffinity_np extension.
This commit is contained in:
parent
2c44452b61
commit
271ec55d0a
@ -18,6 +18,7 @@
|
||||
|
||||
#include <support/xthread.h>
|
||||
|
||||
#ifdef __linux__
|
||||
void
|
||||
xpthread_attr_setaffinity_np (pthread_attr_t *attr,
|
||||
size_t cpusetsize, const cpu_set_t *cpuset)
|
||||
@ -26,3 +27,4 @@ xpthread_attr_setaffinity_np (pthread_attr_t *attr,
|
||||
pthread_attr_setaffinity_np (attr, cpusetsize,
|
||||
cpuset));
|
||||
}
|
||||
#endif
|
||||
|
@ -66,9 +66,11 @@ void *xpthread_join (pthread_t thr);
|
||||
void xpthread_once (pthread_once_t *guard, void (*func) (void));
|
||||
void xpthread_attr_destroy (pthread_attr_t *attr);
|
||||
void xpthread_attr_init (pthread_attr_t *attr);
|
||||
#ifdef __linux__
|
||||
void xpthread_attr_setaffinity_np (pthread_attr_t *attr,
|
||||
size_t cpusetsize,
|
||||
const cpu_set_t *cpuset);
|
||||
#endif
|
||||
void xpthread_attr_setdetachstate (pthread_attr_t *attr,
|
||||
int detachstate);
|
||||
void xpthread_attr_setstack (pthread_attr_t *attr, void *stackaddr,
|
||||
|
Loading…
Reference in New Issue
Block a user