Remote Call Framework 3.3
AmiThreadPool.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2022, Delta V Software. All rights reserved.
6 // https://www.deltavsoft.com
7 //
8 // RCF is distributed under dual licenses - closed source or GPL.
9 // Consult your particular license for conditions of use.
10 //
11 // If you have not purchased a commercial license, you are using RCF under GPL terms.
12 //
13 // Version: 3.3
14 // Contact: support <at> deltavsoft.com
15 //
16 //******************************************************************************
17 
18 #ifndef INCLUDE_RCF_AMITHREADPOOL_HPP
19 #define INCLUDE_RCF_AMITHREADPOOL_HPP
20 
21 #include <memory>
22 
23 #include <RCF/Export.hpp>
24 #include <RCF/ThreadPool.hpp>
25 
26 namespace RCF {
27 
28  class RCF_EXPORT AmiThreadPool
29  {
30  public:
31  AmiThreadPool();
32  ~AmiThreadPool();
33 
34  void start();
35  void stop();
36 
37  AsioIoService & getIoService();
38 
39  static void setEnableMultithreadedBlockingConnects(bool enable = true);
40  static bool getEnableMultithreadedBlockingConnects();
41 
42  private:
43  ThreadPool mThreadPool;
44  };
45 
46  RCF_EXPORT AmiThreadPool & getAmiThreadPool();
47 
48 } // namespace RCF
49 
50 #endif // ! INCLUDE_RCF_AMITHREADPOOL_HPP
Definition: AmiIoHandler.hpp:23