From a58afcaf47e5fbae2e0d8f0992588abdfaa87896 Mon Sep 17 00:00:00 2001 From: rfm Date: Tue, 25 Oct 2011 11:35:27 +0000 Subject: [PATCH] tweak description and fix comment git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/performance/trunk@34058 72102866-910b-0410-8b05-ffd578937521 --- GSFIFO.h | 2 +- GSFIFO.m | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/GSFIFO.h b/GSFIFO.h index 6d06e4f..8f6b4ff 100644 --- a/GSFIFO.h +++ b/GSFIFO.h @@ -90,7 +90,7 @@ uint64_t *getWaitCounts; // Waits for gets by time uint64_t *putWaitCounts; // Waits for puts by time NSThread *getThread; // Single consumer thread - NSThread *putThread; // Single consumer thread + NSThread *putThread; // Single producer thread } /** Return statistics for all current GSFIFO instances.
diff --git a/GSFIFO.m b/GSFIFO.m index 2bf2b68..6134682 100644 --- a/GSFIFO.m +++ b/GSFIFO.m @@ -312,8 +312,10 @@ stats(NSTimeInterval ti, uint32_t max, NSTimeInterval *bounds, uint64_t *bands) - (NSString*) description { return [NSString stringWithFormat: - @"%@ (%@) get:%llu put:%llu empty:%llu full:%llu", + @"%@ (%@) capacity:%llu lockless:%c get:%llu put:%llu empty:%llu full:%llu", [super description], name, + (unsigned long long)_capacity, + ((nil == condition) ? 'Y' : 'N'), (unsigned long long)_tail, (unsigned long long)_head, (unsigned long long)emptyCount,