diff options
author | Benoit Foucher <benoit@zeroc.com> | 2013-07-12 14:07:08 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2013-07-12 14:07:08 +0200 |
commit | e0064a1ce41067e40eb1495745e3499e836f1a61 (patch) | |
tree | ca41e7d77ff2da9d02775a4209c2e0009868053d /cpp/test/Ice/background/Configuration.cpp | |
parent | ICE-5377 - clang optimized build failure (diff) | |
download | ice-e0064a1ce41067e40eb1495745e3499e836f1a61.tar.bz2 ice-e0064a1ce41067e40eb1495745e3499e836f1a61.tar.xz ice-e0064a1ce41067e40eb1495745e3499e836f1a61.zip |
Fix to allow transceivers to read more data than requested.
Diffstat (limited to 'cpp/test/Ice/background/Configuration.cpp')
-rw-r--r-- | cpp/test/Ice/background/Configuration.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/cpp/test/Ice/background/Configuration.cpp b/cpp/test/Ice/background/Configuration.cpp index 4a3e9498d04..45bc7872a6f 100644 --- a/cpp/test/Ice/background/Configuration.cpp +++ b/cpp/test/Ice/background/Configuration.cpp @@ -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() { |