~ubuntu-branches/ubuntu/trusty/liburcu/trusty

« back to all changes in this revision

Viewing changes to tests/api.h

  • Committer: Package Import Robot
  • Author(s): Jon Bernard
  • Date: 2013-08-01 21:43:09 UTC
  • mfrom: (1.1.22)
  • Revision ID: package-import@ubuntu.com-20130801214309-xzzr0vswwilmywoh
Tags: 0.7.7-1
* [168b2c5] New upstream version 0.7.7
* [f07b6db] Bump Standards-Version to 3.9.4, no changes necessary
* [8f2716c] Remove backport patch for sparc, included upstream
* [10ec904] Include pkgconfig files in liburcu-dev package (Closes: #710544)
* [cfa7bd6] Prevent hiding of gcc commandline arguments

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
#include <urcu/compiler.h>
31
31
#include <urcu/arch.h>
 
32
#include "cpuset.h"
32
33
 
33
34
/*
34
35
 * Machine parameters.
65
66
#include <limits.h>
66
67
#include <sys/types.h>
67
68
#include <pthread.h>
68
 
#include <sched.h>
69
69
#include <sys/param.h>
70
70
/* #include "atomic.h" */
71
71
 
231
231
        }
232
232
}
233
233
 
234
 
#ifndef HAVE_CPU_SET_T
235
 
typedef unsigned long cpu_set_t;
236
 
# define CPU_ZERO(cpuset) do { *(cpuset) = 0; } while(0)
237
 
# define CPU_SET(cpu, cpuset) do { *(cpuset) |= (1UL << (cpu)); } while(0)
238
 
#endif
239
 
 
240
234
static void run_on(int cpu)
241
235
{
242
236
#if HAVE_SCHED_SETAFFINITY