Messages in this thread | | | Date | Tue, 18 Mar 2014 12:10:20 +0100 | From | Clemens Ladisch <> | Subject | Re: atomic read and increment question |
| |
noman pouigt wrote: > x = 1; > temp = atomic_read_increment(x);
atomic_set(&x, 1); temp = atomic_inc_return(&x);
> I looked through the documentation for atomic > operations but couldn't find out the api
Not everything is fully documented.
Look through include/asm-generic/atomic.h.
Regards, Clemens
| |