consumer_client.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 78 行
H
78 行
/* -*- C++ -*- */
/**
* @file Consumer_Client.h
*
* Consumer_Client.h,v 1.6 2003/10/28 18:34:05 bala Exp
*
* @author Pradeep Gore <pradeep@oomworks.com>
*
*
*/
#ifndef TAO_Notify_CONSUMER_CLIENT_H
#define TAO_Notify_CONSUMER_CLIENT_H
#include /**/ "ace/pre.h"
#include "ORB_Objects.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "ace/SString.h"
#include "ace/Task.h"
class TAO_Notify_Lanes_Consumer;
/**
* @class TAO_Notify_Lanes_Consumer_Client
*
* @brief
*
*/
class TAO_Notify_Lanes_Consumer_Client : public ACE_Task_Base
{
public:
/// Constuctor
TAO_Notify_Lanes_Consumer_Client (TAO_Notify_ORB_Objects& orb_objects);
/// Destructor
~TAO_Notify_Lanes_Consumer_Client ();
/// Init
void initialize (ACE_ENV_SINGLE_ARG_DECL);
/// Run
void run (ACE_ENV_SINGLE_ARG_DECL);
/// Parse Args
int parse_args (int argc, char *argv[]);
/// The thread entry point.
virtual int svc (void);
protected:
/// Create an RT POA with a single lane at the specified RT Priority.
PortableServer::POA_ptr create_rt_poa (ACE_ENV_SINGLE_ARG_DECL);
/// ORB Objects.
TAO_Notify_ORB_Objects orb_objects_;
/// Lock to serialize internal state.
TAO_SYNCH_MUTEX lock_;
/// Count how many consumers are done
int consumer_done_count_;
/// The Priority that we want the consumer lane to be at.
RTCORBA::Priority lane_priority_;
/// The Consumer.
TAO_Notify_Lanes_Consumer* consumer_;
/// The Type the Consumer should subscribe to.
ACE_CString event_type_;
};
#include /**/ "ace/post.h"
#endif /* TAO_Notify_CONSUMER_CLIENT_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?