several typos fixed, optimize MSETNX to avoid unnecessary loop

This commit is contained in:
hujiecs
2018-10-16 15:48:03 +08:00
parent 1caabd59b2
commit 297950e8b8
5 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
/* This file implements atomic counters using __atomic or __sync macros if
* available, otherwise synchronizing different threads using a mutex.
*
* The exported interaface is composed of three macros:
* The exported interface is composed of three macros:
*
* atomicIncr(var,count) -- Increment the atomic counter
* atomicGetIncr(var,oldvalue_var,count) -- Get and increment the atomic counter