Open airekans opened 11 years ago
Right now, I use mutex to implement atomic, which is very inefficient. Try to use gcc native function to implement lockless one.
Here's the reference for gcc native support for atomic: https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
Right now, I use mutex to implement atomic, which is very inefficient. Try to use gcc native function to implement lockless one.