diff options
author | Benoit Foucher <benoit@zeroc.com> | 2008-06-06 11:39:41 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2008-06-06 11:39:41 +0200 |
commit | 966061fcb0e2ec4d5d7ed9c6c280eefb27209da7 (patch) | |
tree | 078246631fb864d9e908108d69917b18c6303c16 /cppe/demo/IceE/chat/PingThread.cpp | |
parent | Removed SL code (diff) | |
download | ice-966061fcb0e2ec4d5d7ed9c6c280eefb27209da7.tar.bz2 ice-966061fcb0e2ec4d5d7ed9c6c280eefb27209da7.tar.xz ice-966061fcb0e2ec4d5d7ed9c6c280eefb27209da7.zip |
Removed Ice-E
Diffstat (limited to 'cppe/demo/IceE/chat/PingThread.cpp')
-rw-r--r-- | cppe/demo/IceE/chat/PingThread.cpp | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/cppe/demo/IceE/chat/PingThread.cpp b/cppe/demo/IceE/chat/PingThread.cpp deleted file mode 100644 index b7694ca20b8..00000000000 --- a/cppe/demo/IceE/chat/PingThread.cpp +++ /dev/null @@ -1,49 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved. -// -// This copy of Ice-E is licensed to you under the terms described in the -// ICEE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#include <PingThread.h> - -using namespace std; - -SessionPingThread::SessionPingThread(const Glacier2::SessionPrx& session, long timeout) : - _session(session), - _timeout(IceUtil::Time::seconds(timeout)), - _destroy(false) -{ -} - -void -SessionPingThread::run() -{ - Lock sync(*this); - while(!_destroy) - { - timedWait(_timeout); - if(_destroy) - { - break; - } - try - { - _session->ice_ping(); - } - catch(const Ice::Exception&) - { - break; - } - } -} - -void -SessionPingThread::destroy() -{ - Lock sync(*this); - _destroy = true; - notify(); -} |