Closed aborg-dev closed 10 years ago
To provide thread-safety during stats updates we use atomic_t type. On platforms where it is possible it uses __sync_add_and_fetch. When this option is not supported, it uses simple lock to assure atomic updates.
atomic_t
__sync_add_and_fetch
To provide thread-safety during stats updates we use
atomic_t
type. On platforms where it is possible it uses__sync_add_and_fetch
. When this option is not supported, it uses simple lock to assure atomic updates.