summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpp/include/Glacier2/SessionHelper.h4
-rw-r--r--cpp/src/Glacier2Lib/SessionHelper.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/cpp/include/Glacier2/SessionHelper.h b/cpp/include/Glacier2/SessionHelper.h
index d1b04c91f24..3dbe95faddf 100644
--- a/cpp/include/Glacier2/SessionHelper.h
+++ b/cpp/include/Glacier2/SessionHelper.h
@@ -50,7 +50,7 @@ class SessionRefreshThread : public IceUtil::Thread
public:
- SessionRefreshThread(const SessionHelperPtr&, const Glacier2::RouterPrx&, long period);
+ SessionRefreshThread(const SessionHelperPtr&, const Glacier2::RouterPrx&, Ice::Long);
virtual void run();
void done();
void success();
@@ -61,7 +61,7 @@ private:
const Glacier2::Callback_Router_refreshSessionPtr _cb;
const SessionHelperPtr _session;
const Glacier2::RouterPrx _router;
- long _period;
+ Ice::Long _period;
bool _done;
IceUtil::Monitor<IceUtil::Mutex> _monitor;
};
diff --git a/cpp/src/Glacier2Lib/SessionHelper.cpp b/cpp/src/Glacier2Lib/SessionHelper.cpp
index 3ed352453ec..04ad5fcd775 100644
--- a/cpp/src/Glacier2Lib/SessionHelper.cpp
+++ b/cpp/src/Glacier2Lib/SessionHelper.cpp
@@ -50,7 +50,7 @@ private:
}
Glacier2::SessionRefreshThread::SessionRefreshThread(const Glacier2::SessionHelperPtr& session,
- const Glacier2::RouterPrx& router, long period) :
+ const Glacier2::RouterPrx& router, Ice::Long period) :
_cb(Glacier2::newCallback_Router_refreshSession(this, &SessionRefreshThread::success,
&SessionRefreshThread::failure)),
_session(session),
@@ -80,7 +80,7 @@ Glacier2::SessionRefreshThread::run()
if(!_done)
{
- _monitor.timedWait(IceUtil::Time::seconds((int)_period));
+ _monitor.timedWait(IceUtil::Time::seconds(_period));
}
if(_done)
@@ -566,7 +566,7 @@ Glacier2::SessionHelper::connected(const Glacier2::RouterPrx& router, const Glac
assert(router);
Ice::ConnectionPtr conn = router->ice_getCachedConnection();
string category = router->getCategoryForClient();
- long timeout = router->getSessionTimeout();
+ Ice::Long timeout = router->getSessionTimeout();
{
IceUtil::Mutex::Lock sync(_mutex);