summaryrefslogtreecommitdiff
path: root/TAO/tao/Wait_Strategy.cpp
blob: 336370dca1315830e6afd351c549d1aea5560e9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// $Id$

#include "tao/Wait_Strategy.h"

ACE_RCSID(tao, Wait_Strategy, "$Id$")

#if !defined (__ACE_INLINE__)
# include "Wait_Strategy.inl"
#endif /* __ACE_INLINE__ */

// Constructor.
TAO_Wait_Strategy::TAO_Wait_Strategy (TAO_Transport *transport)
  : transport_ (transport),
    is_registered_ (0)

{
}

// Destructor.
TAO_Wait_Strategy::~TAO_Wait_Strategy (void)
{
}

int
TAO_Wait_Strategy::sending_request (TAO_ORB_Core * /* orb_core */,
                                    int            /* two_way */)
{
  return 0;
}

TAO_SYNCH_CONDITION *
TAO_Wait_Strategy::leader_follower_condition_variable (void)
{
  return 0;
}

int
TAO_Wait_Strategy::reply_dispatched (int &reply_received,
                                     TAO_SYNCH_CONDITION *)
{
  // In most implementations of this strategy there is no need to
  // acquire any mutex to set the reply_received flag.
  reply_received = 1;
  return 0;
}

void
TAO_Wait_Strategy::connection_closed (int &reply_received,
                                      TAO_SYNCH_CONDITION*)
{
  // In most implementations of this strategy there is no need to
  // acquire any mutex to set the reply_received flag.
  reply_received = -1;
}