Messages in this thread | | | Date | Tue, 18 Mar 2014 01:26:12 -0700 | Subject | atomic read and increment question | From | noman pouigt <> |
| |
Hello,
I looked through the documentation for atomic operations but couldn't find out the api for following operation:
x = 1; temp = atomic_read_increment(x);
so basically this will read the old value of x in temp and then increment x.
so temp = 1 and x = 2.
Is this api already available?
Thanks,
| |