From 2bef8e784f6b2f9ba9799c5f931be5353208fece Mon Sep 17 00:00:00 2001 From: Dwight Merriman Date: Tue, 20 Apr 2010 19:07:37 -0400 Subject: cleanup bucketbasics start --- util/concurrency/value.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'util') diff --git a/util/concurrency/value.h b/util/concurrency/value.h index b80b494d32e..73b23fb7bed 100644 --- a/util/concurrency/value.h +++ b/util/concurrency/value.h @@ -20,6 +20,10 @@ namespace mongo { +/** this string COULD be mangled but with the double buffering, assuming writes + are infrequent, it's unlikely. thus, this is reasonable for lockless setting of + diagnostic strings, where their content isn't critical. + */ class DiagStr { char buf1[256]; char buf2[256]; @@ -31,10 +35,6 @@ public: p = buf1; } - /** this string COULD be mangled but with the double buffering, assuming writes - are infrequent, it's unlikely. thus, this is reasonable for lockless setting of - diagnostic strings, where their content isn't critical. - */ const char * get() const { return p; } void set(const char *s) { -- cgit v1.2.1