Date: Wednesday, January 10, 2007 @ 19:13:10
Author: marc
Path: /cvsroot/carob/carob/src
Modified: StringCodecs.cpp (1.13 -> 1.14)
Using separate locks for encode and decode. CAROB-79
------------------+
StringCodecs.cpp | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
Index: carob/src/StringCodecs.cpp
diff -u carob/src/StringCodecs.cpp:1.13 carob/src/StringCodecs.cpp:1.14
--- carob/src/StringCodecs.cpp:1.13 Wed Jan 3 14:17:49 2007
+++ carob/src/StringCodecs.cpp Wed Jan 10 19:13:10 2007
@@ -170,7 +170,9 @@
#include <CriticalSection.hpp>
-static CriticalSection iconvCodecCS;
+namespace {
+ CriticalSection iconvDecodeCS, iconvEncodeCS;
+}
IconvCodec::IconvCodec() : cd_from(iconv_t(-1)), cd_to(iconv_t(-1))
{
@@ -218,7 +220,7 @@
if (s.empty())
return std::wstring();
- LockScope ls(&iconvCodecCS);
+ LockScope ls(&iconvDecodeCS);
std::wstring result;
@@ -266,7 +268,7 @@
if (w.empty())
return std::string();
- LockScope ls(&iconvCodecCS);
+ LockScope ls(&iconvEncodeCS);
std::string result;
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits