summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/background/Configuration.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2014-03-19 12:45:55 -0700
committerMark Spruiell <mes@zeroc.com>2014-03-19 12:45:55 -0700
commitcdcffbcc3c3c052afdeb772ff0167e7a90b525bb (patch)
tree4f16ee41ef7d33394c44e9db81e4d6cd89908250 /cpp/test/Ice/background/Configuration.cpp
parentfixing testicedist.py for 5487 (diff)
downloadice-cdcffbcc3c3c052afdeb772ff0167e7a90b525bb.tar.bz2
ice-cdcffbcc3c3c052afdeb772ff0167e7a90b525bb.tar.xz
ice-cdcffbcc3c3c052afdeb772ff0167e7a90b525bb.zip
merging javascript branch
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()
{