/ Published in: C
C concurrency failure
Expand |
Embed | Plain Text
int64_t AddAndGetAtomic(Object *o, int64_t amount) { OSAtomicAdd64(amount, &(o->counter)); return o->counter; }
You need to login to post a comment.
C concurrency failure
int64_t AddAndGetAtomic(Object *o, int64_t amount) { OSAtomicAdd64(amount, &(o->counter)); return o->counter; }
You need to login to post a comment.