blob: 1fa4703e5088646cbead962e7b95c34a9b6a36ca (
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
55
56
57
58
59
|
//=============================================================================
/**
* @file Wait_On_Read.h
*
* @author Alexander Babu Arulanthu <alex@cs.wustl.edu>
*/
//=============================================================================
#ifndef TAO_WAIT_ON_READ_H
#define TAO_WAIT_ON_READ_H
#include /**/ "ace/pre.h"
#include "tao/Wait_Strategy.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_Wait_On_Read
*
* Simply block on read() to wait for the reply.
*/
class TAO_Wait_On_Read : public TAO_Wait_Strategy
{
public:
/// Constructor.
explicit TAO_Wait_On_Read (TAO_Transport *transport);
/// Destructor.
~TAO_Wait_On_Read () override = default;
/*! @copydoc TAO_Wait_Strategy::sending_request() */
int sending_request (TAO_ORB_Core *orb_core, TAO_Message_Semantics msg_semantics) override;
/*! @copydoc TAO_Wait_Strategy::finished_request() */
void finished_request () override;
/*! @copydoc TAO_Wait_Strategy::wait() */
int wait (ACE_Time_Value *max_wait_time, TAO_Synch_Reply_Dispatcher &rd) override;
/*! @copydoc TAO_Wait_Strategy::register_handler() */
int register_handler () override;
/*! @copydoc TAO_Wait_Strategy::non_blocking() */
bool non_blocking () const override;
/*! @copydoc TAO_Wait_Strategy::can_process_upcalls() */
bool can_process_upcalls () const override;
};
TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* TAO_WAIT_ON_READ_H */
|