mongo::DiagStr Class Reference
#include <value.h>
List of all members.
Public Member Functions |
| DiagStr () |
const char * | get () const |
void | set (const char *s) |
Private Attributes |
char | buf1 [256] |
char | buf2 [256] |
char * | p |
Detailed Description
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.
Definition at line 67 of file value.h.
Constructor & Destructor Documentation
mongo::DiagStr::DiagStr |
( |
|
) |
[inline] |
Member Function Documentation
const char* mongo::DiagStr::get |
( |
|
) |
const [inline] |
void mongo::DiagStr::set |
( |
const char * |
s |
) |
[inline] |
Member Data Documentation
The documentation for this class was generated from the following file: