~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to cpp/test/Ice/dispatcher/TestI.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martin Angelina
  • Date: 2011-04-25 18:44:24 UTC
  • mfrom: (6.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110425184424-sep9i9euu434vq4c
Tags: 3.4.1-7
* Bug fix: "libdb5.1-java.jar was renamed to db.jar", thanks to Ondřej
  Surý (Closes: #623555).
* Bug fix: "causes noise in php5", thanks to Jayen Ashar (Closes:
  #623533).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// **********************************************************************
 
2
//
 
3
// Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
 
4
//
 
5
// This copy of Ice is licensed to you under the terms described in the
 
6
// ICE_LICENSE file included in this distribution.
 
7
//
 
8
// **********************************************************************
 
9
 
 
10
#include <TestI.h>
 
11
#include <Ice/Ice.h>
 
12
#include <Dispatcher.h>
 
13
#include <TestCommon.h>
 
14
 
 
15
using namespace std;
 
16
 
 
17
void
 
18
TestIntfI::op(const Ice::Current& current)
 
19
{
 
20
    test(Dispatcher::isDispatcherThread());
 
21
}
 
22
 
 
23
void
 
24
TestIntfI::opWithPayload(const Ice::ByteSeq&, const Ice::Current& current)
 
25
{
 
26
    test(Dispatcher::isDispatcherThread());
 
27
}
 
28
 
 
29
void
 
30
TestIntfI::shutdown(const Ice::Current& current)
 
31
{
 
32
    test(Dispatcher::isDispatcherThread());
 
33
    current.adapter->getCommunicator()->shutdown();
 
34
}
 
35
 
 
36
void
 
37
TestIntfControllerI::holdAdapter(const Ice::Current&)
 
38
{
 
39
    test(Dispatcher::isDispatcherThread());
 
40
    _adapter->hold();
 
41
}
 
42
    
 
43
void
 
44
TestIntfControllerI::resumeAdapter(const Ice::Current&)
 
45
{
 
46
    test(Dispatcher::isDispatcherThread());
 
47
    _adapter->activate();
 
48
}
 
49
    
 
50
TestIntfControllerI::TestIntfControllerI(const Ice::ObjectAdapterPtr& adapter) : _adapter(adapter)
 
51
{
 
52
}