diff options
author | Michael Biebl <biebl@debian.org> | 2011-02-07 18:00:17 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2011-02-07 18:00:17 +0100 |
commit | 537e74be114f1698f9ec825cf8ea497ffc0f17c5 (patch) | |
tree | f06036c66bfef013978bd8e53fb2a247e8a95842 /runtime/statsobj.h | |
parent | 0a5a3fba01d42ef3b380c4ae27699bb42c3af493 (diff) | |
download | rsyslog-537e74be114f1698f9ec825cf8ea497ffc0f17c5.tar.gz |
Imported Upstream version 5.7.3upstream/5.7.3
Diffstat (limited to 'runtime/statsobj.h')
-rw-r--r-- | runtime/statsobj.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/statsobj.h b/runtime/statsobj.h index 7447cde..44c26be 100644 --- a/runtime/statsobj.h +++ b/runtime/statsobj.h @@ -99,19 +99,19 @@ PROTOTYPEObj(statsobj); */ #define STATSCOUNTER_DEF(ctr, mut) \ intctr_t ctr; \ - DEF_ATOMIC_HELPER_MUT(mut); + DEF_ATOMIC_HELPER_MUT64(mut); #define STATSCOUNTER_INIT(ctr, mut) \ - INIT_ATOMIC_HELPER_MUT(mut); \ + INIT_ATOMIC_HELPER_MUT64(mut); \ ctr = 0; #define STATSCOUNTER_INC(ctr, mut) \ if(GatherStats) \ - ATOMIC_INC(&ctr, &mut); + ATOMIC_INC_uint64(&ctr, &mut); #define STATSCOUNTER_DEC(ctr, mut) \ if(GatherStats) \ - ATOMIC_DEC(&ctr, mut); + ATOMIC_DEC_uint64(&ctr, mut); /* the next macro works only if the variable is already guarded * by mutex (or the users risks a wrong result). It is assumed |