projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add tab to output in order to allow easy nesting of tables.
[urcu.git]
/
tests
/
api.h
diff --git
a/tests/api.h
b/tests/api.h
index 6d7190086b1babef4610fd6ca349a1b096c78687..2b876565c991351a86f3c61748addc1d20b1a68a 100644
(file)
--- a/
tests/api.h
+++ b/
tests/api.h
@@
-29,6
+29,7
@@
#include <urcu/compiler.h>
#include <urcu/arch.h>
#include <urcu/compiler.h>
#include <urcu/arch.h>
+#include "cpuset.h"
/*
* Machine parameters.
/*
* Machine parameters.
@@
-65,7
+66,6
@@
#include <limits.h>
#include <sys/types.h>
#include <pthread.h>
#include <limits.h>
#include <sys/types.h>
#include <pthread.h>
-#include <sched.h>
#include <sys/param.h>
/* #include "atomic.h" */
#include <sys/param.h>
/* #include "atomic.h" */
@@
-231,12
+231,6
@@
static void wait_all_threads(void)
}
}
}
}
-#ifndef HAVE_CPU_SET_T
-typedef unsigned long cpu_set_t;
-# define CPU_ZERO(cpuset) do { *(cpuset) = 0; } while(0)
-# define CPU_SET(cpu, cpuset) do { *(cpuset) |= (1UL << (cpu)); } while(0)
-#endif
-
static void run_on(int cpu)
{
#if HAVE_SCHED_SETAFFINITY
static void run_on(int cpu)
{
#if HAVE_SCHED_SETAFFINITY
This page took
0.023843 seconds
and
4
git commands to generate.