~percona-dev/percona-server/release-5.5.11-20.2-fix-bug-764138

« back to all changes in this revision

Viewing changes to HandlerSocket-Plugin-for-MySQL/handlersocket/hstcpsvr_worker.hpp

  • Committer: Ignacio Nin
  • Date: 2011-03-13 17:18:23 UTC
  • mfrom: (33.3.17 release-5.5.8-20)
  • Revision ID: ignacio.nin@percona.com-20110313171823-m06xs104nekulywb
Merge changes from release-5.5.8-20 to 5.5.9

Merge changes from the release branch of 5.5.8 to 5.5.9. These include
the HandlerSocket and UDF directories and the building scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
// vim:sw=2:ai
 
3
 
 
4
/*
 
5
 * Copyright (C) 2010 DeNA Co.,Ltd.. All rights reserved.
 
6
 * See COPYRIGHT.txt for details.
 
7
 */
 
8
 
 
9
#ifndef DENA_HSTCPSVR_WORKER_HPP
 
10
#define DENA_HSTCPSVR_WORKER_HPP
 
11
 
 
12
#include "hstcpsvr.hpp"
 
13
 
 
14
namespace dena {
 
15
 
 
16
struct hstcpsvr_worker_i;
 
17
typedef std::auto_ptr<hstcpsvr_worker_i> hstcpsvr_worker_ptr;
 
18
 
 
19
struct hstcpsvr_worker_arg {
 
20
  const hstcpsvr_shared_c *cshared;
 
21
  volatile hstcpsvr_shared_v *vshared;
 
22
  long worker_id;
 
23
  hstcpsvr_worker_arg() : cshared(0), vshared(0), worker_id(0) { }
 
24
};
 
25
 
 
26
struct hstcpsvr_worker_i {
 
27
  virtual ~hstcpsvr_worker_i() { }
 
28
  virtual void run() = 0;
 
29
  static hstcpsvr_worker_ptr create(const hstcpsvr_worker_arg& arg);
 
30
};
 
31
 
 
32
};
 
33
 
 
34
#endif
 
35