mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
build-sys: fix check for pthread_setaffinity_np()
This commit is contained in:
parent
2b2149dc9d
commit
323f0ad403
2 changed files with 2 additions and 1 deletions
|
|
@ -402,6 +402,7 @@ AC_SEARCH_LIBS([dlopen], [dl])
|
|||
AC_SEARCH_LIBS([shm_open], [rt])
|
||||
AC_SEARCH_LIBS([inet_ntop], [nsl])
|
||||
AC_SEARCH_LIBS([timer_create], [rt])
|
||||
AC_SEARCH_LIBS([pthread_setaffinity_np], [pthread])
|
||||
|
||||
# BSD
|
||||
AC_SEARCH_LIBS([connect], [socket])
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ static pa_once once = PA_ONCE_INIT;
|
|||
static volatile unsigned n_run = 0;
|
||||
static const char * volatile ran_by = NULL;
|
||||
static pthread_barrier_t barrier;
|
||||
static pa_atomic_t i_cpu = PA_ATOMIC_INIT(0);
|
||||
static unsigned n_cpu;
|
||||
|
||||
#define N_ITERATIONS 500
|
||||
|
|
@ -51,6 +50,7 @@ static void thread_func(void *data) {
|
|||
int r;
|
||||
|
||||
#ifdef HAVE_PTHREAD_SETAFFINITY_NP
|
||||
static pa_atomic_t i_cpu = PA_ATOMIC_INIT(0);
|
||||
cpu_set_t mask;
|
||||
|
||||
CPU_ZERO(&mask);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue