• antirez's avatar
    Modules TSC: use atomic var for server.unixtime. · 1f598fc2
    antirez authored
    This avoids Helgrind complaining, but we are actually not using
    atomicGet() to get the unixtime value for now: too many places where it
    is used and given tha time_t is word-sized it should be safe in all the
    archs we support as it is.
    
    On the other hand, Helgrind, when Redis is compiled with "make helgrind"
    in order to force the __sync macros, will detect the write in
    updateCachedTime() as a read (because atomic functions are used) and
    will not complain about races.
    
    This commit also includes minor refactoring of mutex initializations and
    a "helgrind" target in the Makefile.
    1f598fc2
Makefile 8.57 KB