diff options
author | ZeroC Staff <git@zeroc.com> | 2002-09-27 13:17:14 +0000 |
---|---|---|
committer | ZeroC Staff <git@zeroc.com> | 2002-09-27 13:17:14 +0000 |
commit | d0527e0dd79f7daf071b445318e36e5acdbff2c8 (patch) | |
tree | a656bcf3bd063e2934f39544c1ae8215a521e8d0 /cpp/src/IcePatch/ClientUtil.cpp | |
parent | changed minimal target (diff) | |
download | ice-d0527e0dd79f7daf071b445318e36e5acdbff2c8.tar.bz2 ice-d0527e0dd79f7daf071b445318e36e5acdbff2c8.tar.xz ice-d0527e0dd79f7daf071b445318e36e5acdbff2c8.zip |
added AbortException to IcePatch.ice with support in IcePatch/ClientUtil
Diffstat (limited to 'cpp/src/IcePatch/ClientUtil.cpp')
-rw-r--r-- | cpp/src/IcePatch/ClientUtil.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cpp/src/IcePatch/ClientUtil.cpp b/cpp/src/IcePatch/ClientUtil.cpp index 452893e88c2..fc800df9154 100644 --- a/cpp/src/IcePatch/ClientUtil.cpp +++ b/cpp/src/IcePatch/ClientUtil.cpp @@ -17,6 +17,29 @@ using namespace std; using namespace Ice; using namespace IcePatch; +ProgressCB::ProgressCB() : + _aborted(false) +{ +} + +ProgressCB::~ProgressCB() +{ +} + +void +IcePatch::ProgressCB::abort() +{ + IceUtil::Mutex::Lock lock(*this); + _aborted = true; +} + +bool +IcePatch::ProgressCB::isAborted() +{ + IceUtil::Mutex::Lock lock(*this); + return _aborted; +} + string IcePatch::pathToName(const string& path) { |