diff options
Diffstat (limited to 'src/mongo/logger/console.h')
-rw-r--r-- | src/mongo/logger/console.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/mongo/logger/console.h b/src/mongo/logger/console.h index b86cb7f984f..8188ff9af03 100644 --- a/src/mongo/logger/console.h +++ b/src/mongo/logger/console.h @@ -33,28 +33,28 @@ namespace mongo { - /** - * Representation of the console. Use this in place of cout/cin, in applications that write to - * the console from multiple threads (such as those that use the logging subsystem). - * - * The Console type is synchronized such that only one instance may be in the fully constructed - * state at a time. Correct usage is to instantiate one, write or read from it as desired, and - * then destroy it. - * - * The console streams accept UTF-8 encoded data, and attempt to write it to the attached - * console faithfully. - * - * TODO(schwerin): If no console is attached on Windows (services), should writes here go to the - * event logger? - */ - class Console { - public: - Console(); - - std::ostream& out(); - - private: - stdx::unique_lock<stdx::mutex> _consoleLock; - }; +/** + * Representation of the console. Use this in place of cout/cin, in applications that write to + * the console from multiple threads (such as those that use the logging subsystem). + * + * The Console type is synchronized such that only one instance may be in the fully constructed + * state at a time. Correct usage is to instantiate one, write or read from it as desired, and + * then destroy it. + * + * The console streams accept UTF-8 encoded data, and attempt to write it to the attached + * console faithfully. + * + * TODO(schwerin): If no console is attached on Windows (services), should writes here go to the + * event logger? + */ +class Console { +public: + Console(); + + std::ostream& out(); + +private: + stdx::unique_lock<stdx::mutex> _consoleLock; +}; } // namespace mongo |