airekans / Tpool

C++ Thread Pool implementation base on POSIX pthread
https://github.com/airekans/Tpool
MIT License
15 stars 9 forks source link

Implement Lockless Atomic #4

Open airekans opened 11 years ago

airekans commented 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.

airekans commented 9 years ago

Here's the reference for gcc native support for atomic: https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html