; (*ptr),
> "a" (val)
> : "memory");
>
> return val;
> }
>-----Original Message-----
>From: Richardson, Bruce
>Sent: Thursday, December 3, 2015 4:46 PM
>To: Stephen Hemminger
>Cc: Betts, Ian; dev
On Thu, Dec 03, 2015 at 08:31:39AM -0800, Stephen Hemminger wrote:
> On Thu, 3 Dec 2015 09:28:23 +
> ibetts wrote:
>
> > +/*
> > + * Atomically set a value and return the old value
> > + */
> > +static inline uint64_t
> > +atomic64_xchg(uint64_t *ptr, uint64_t val) __attribute__ ((always_inl
From: Ian Betts
This commit adds the lightweight thread subsystem used by the
performance-thread sample applications.
Signed-off-by: Ian Betts
---
.../performance-thread/common/arch/x86/atomic.h| 59 ++
examples/performance-thread/common/arch/x86/ctx.c | 93 +++
examples/performance-thr
On Thu, 3 Dec 2015 09:28:23 +
ibetts wrote:
> +/*
> + * Atomically set a value and return the old value
> + */
> +static inline uint64_t
> +atomic64_xchg(uint64_t *ptr, uint64_t val) __attribute__ ((always_inline));
> +static inline uint64_t
> +atomic64_xchg(uint64_t *ptr, uint64_t val)
You
4 matches
Mail list logo