server_task.h

来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 42 行

H
42
字号
//
// Server_Task.h,v 1.1 2003/08/06 23:40:21 arvindk Exp
//

#ifndef COLLOCATED_SERVER_TASK_H
#define COLLOCATED_SERVER_TASK_H
#include /**/ "ace/pre.h"

#include "ace/Task.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "tao/ORB.h"

/// Implement a Task to run the server in a single thread
class Server_Task : public ACE_Task_Base
{
public:
  /// Constructor
  Server_Task (char* ior_file,
               CORBA::ORB_ptr sorb,
               ACE_Null_Condition &cond,
               ACE_Thread_Manager *thr_mgr);

  /// Thread entry point
  int svc (void);

private:

  const char* ior_file;
  /// Manual event to wake up the main thread to create a client
  /// thread.
  ACE_Null_Condition &cond_;

  CORBA::ORB_var sorb_;
};

#include /**/ "ace/post.h"
#endif /* COLLOCATED_SERVER_TASK_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?