diff options
author | Dwight Merriman <dwight@10gen.com> | 2010-04-20 19:07:37 -0400 |
---|---|---|
committer | Dwight Merriman <dwight@10gen.com> | 2010-04-20 19:07:37 -0400 |
commit | 2bef8e784f6b2f9ba9799c5f931be5353208fece (patch) | |
tree | f87f24d7157e63dcc32b6624afa6caae59e769ff /util | |
parent | 28a303759cf6bc1a0d082939496b959495d74a00 (diff) | |
download | mongo-2bef8e784f6b2f9ba9799c5f931be5353208fece.tar.gz |
cleanup bucketbasics start
Diffstat (limited to 'util')
-rw-r--r-- | util/concurrency/value.h | 8 |
1 files changed, 4 insertions, 4 deletions
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) { |