client_task.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 43 行
H
43 行
//
// Client_Task.h,v 1.4 2003/10/28 18:30:41 bala Exp
//
#ifndef AMI_BUFFERING_CLIENT_TASK_H
#define AMI_BUFFERING_CLIENT_TASK_H
#include /**/ "ace/pre.h"
#include "tao/ORB.h"
#include "ace/Task.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
/// Implement a Task to run the experiments using multiple threads.
class Client_Task : public ACE_Task_Base
{
public:
/// Constructor
Client_Task (CORBA::ORB_ptr orb);
/// Terminate the loop
void terminate_loop (void);
/// Thread entry point
int svc (void);
private:
/// Reference to the ORB
CORBA::ORB_var orb_;
/// A mutex, synchronize access to the termination flag
TAO_SYNCH_MUTEX mutex_;
/// Termination flag, set to 1 when the client wants this task to
/// exit
int terminate_loop_;
};
#include /**/ "ace/post.h"
#endif /* AMI_BUFFERING_CLIENT_TASK_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?