diff options
Diffstat (limited to 'linden/indra/llcommon/llfixedbuffer.h')
-rw-r--r-- | linden/indra/llcommon/llfixedbuffer.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/linden/indra/llcommon/llfixedbuffer.h b/linden/indra/llcommon/llfixedbuffer.h index dcd4dfb..992a024 100644 --- a/linden/indra/llcommon/llfixedbuffer.h +++ b/linden/indra/llcommon/llfixedbuffer.h | |||
@@ -17,7 +17,8 @@ | |||
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 20 | * online at |
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | 22 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -36,6 +37,7 @@ | |||
36 | #include <deque> | 37 | #include <deque> |
37 | #include <string> | 38 | #include <string> |
38 | #include "llstring.h" | 39 | #include "llstring.h" |
40 | #include "llthread.h" | ||
39 | 41 | ||
40 | // Fixed size buffer for console output and other things. | 42 | // Fixed size buffer for console output and other things. |
41 | 43 | ||
@@ -52,14 +54,19 @@ public: | |||
52 | std::deque<S32> mLineLengths; | 54 | std::deque<S32> mLineLengths; |
53 | 55 | ||
54 | void clear(); // Clear the buffer, and reset it. | 56 | void clear(); // Clear the buffer, and reset it. |
55 | virtual void addLine(const std::string& utf8line); | 57 | |
56 | virtual void addLine(const LLWString& line); | 58 | //do not make these two "virtual" |
59 | void addLine(const std::string& utf8line); | ||
60 | void addLine(const LLWString& line); | ||
57 | 61 | ||
58 | // Get lines currently in the buffer, up to max_size chars, max_length lines | 62 | // Get lines currently in the buffer, up to max_size chars, max_length lines |
59 | char *getLines(U32 max_size = 0, U32 max_length = 0); | 63 | char *getLines(U32 max_size = 0, U32 max_length = 0); |
60 | void setMaxLines(S32 max_lines); | 64 | void setMaxLines(S32 max_lines); |
61 | protected: | 65 | protected: |
62 | virtual void removeExtraLines(); | 66 | virtual void removeExtraLines(); |
67 | |||
68 | protected: | ||
69 | LLMutex mMutex ; | ||
63 | }; | 70 | }; |
64 | 71 | ||
65 | const U32 FIXED_BUF_MAX_LINE_LEN = 255; // Not including termnating 0 | 72 | const U32 FIXED_BUF_MAX_LINE_LEN = 255; // Not including termnating 0 |