summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4d78cb5)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
#define LOCK_PREFIX "lock ; "
#define LOCK_PREFIX "lock ; "
+#if 0 /* duplicate with arch_atomic.h */
/*
* Atomic data structure, initialization, and access.
*/
/*
* Atomic data structure, initialization, and access.
*/
#define smp_mb__before_atomic_inc() barrier()
#define smp_mb__after_atomic_inc() barrier()
#define smp_mb__before_atomic_inc() barrier()
#define smp_mb__after_atomic_inc() barrier()
+#endif //0 /* duplicate with arch_atomic.h */
+
/*
* api_pthreads.h: API mapping to pthreads environment.
*
/*
* api_pthreads.h: API mapping to pthreads environment.
*
#define ____cacheline_internodealigned_in_smp \
__attribute__((__aligned__(1 << 7)))
#define ____cacheline_internodealigned_in_smp \
__attribute__((__aligned__(1 << 7)))
+#if 0 /* duplicate with arch_atomic.h */
+
/*
* Atomic data structure, initialization, and access.
*/
/*
* Atomic data structure, initialization, and access.
*/
# define ISYNC_ON_SMP
#endif
# define ISYNC_ON_SMP
#endif
#define smp_mb__before_atomic_inc() smp_mb()
#define smp_mb__after_atomic_inc() smp_mb()
#define smp_mb__before_atomic_inc() smp_mb()
#define smp_mb__after_atomic_inc() smp_mb()
+#endif //0 /* duplicate with arch_atomic.h */
+
/*
* api_pthreads.h: API mapping to pthreads environment.
*
/*
* api_pthreads.h: API mapping to pthreads environment.
*
#define LOCK_PREFIX "lock ; "
#define LOCK_PREFIX "lock ; "
+#if 0 /* duplicate with arch_atomic.h */
+
/*
* Atomic data structure, initialization, and access.
*/
/*
* Atomic data structure, initialization, and access.
*/
#define smp_mb__before_atomic_inc() barrier()
#define smp_mb__after_atomic_inc() barrier()
#define smp_mb__before_atomic_inc() barrier()
#define smp_mb__after_atomic_inc() barrier()
/*
* api_pthreads.h: API mapping to pthreads environment.
*
/*
* api_pthreads.h: API mapping to pthreads environment.
*
long long n_reads = 0LL;
long n_updates = 0L;
long long n_reads = 0LL;
long n_updates = 0L;
-atomic_t nthreadsrunning;
char argsbuf[64];
#define GOFLAG_INIT 0
char argsbuf[64];
#define GOFLAG_INIT 0
#include <poll.h>
#include <unistd.h>
#include <stdlib.h>
#include <poll.h>
#include <unistd.h>
#include <stdlib.h>
+#include "../arch_atomic.h"
#include "api.h"
#define _LGPL_SOURCE
#include "../urcu.h"
#include "api.h"
#define _LGPL_SOURCE
#include "../urcu.h"