summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/background/Configuration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/background/Configuration.cpp')
-rw-r--r--cpp/test/Ice/background/Configuration.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/cpp/test/Ice/background/Configuration.cpp b/cpp/test/Ice/background/Configuration.cpp
index 4a3e9498d04..06128a48ad3 100644
--- a/cpp/test/Ice/background/Configuration.cpp
+++ b/cpp/test/Ice/background/Configuration.cpp
@@ -1,6 +1,6 @@
// **********************************************************************
//
-// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
+// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
@@ -15,7 +15,8 @@ Configuration::Configuration() :
_initializeSocketOperation(IceInternal::SocketOperationNone),
_initializeResetCount(0),
_readReadyCount(0),
- _writeReadyCount(0)
+ _writeReadyCount(0),
+ _buffered(false)
{
assert(!_instance);
_instance = this;
@@ -174,6 +175,20 @@ Configuration::checkWriteException()
}
}
+void
+Configuration::buffered(bool buffered)
+{
+ Lock sync(*this);
+ _buffered = buffered;
+}
+
+bool
+Configuration::buffered()
+{
+ Lock sync(*this);
+ return _buffered;
+}
+
Configuration*
Configuration::getInstance()
{