NDS3  1.0.0
API reference manual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
threadBaseImpl.h
1 /*
2  * Nominal Device Support v3 (NDS3)
3  *
4  * Copyright (c) 2015 Cosylab d.d.
5  *
6  * For more information about the license please refer to the license.txt
7  * file included in the distribution.
8  */
9 
10 #ifndef NDSTHREADBASEIMPL_H
11 #define NDSTHREADBASEIMPL_H
12 
13 #include <string>
14 #include <memory>
15 #include "nds3/definitions.h"
16 
17 namespace nds
18 {
19 
20 class FactoryBaseImpl;
21 
22 class NDS3_API ThreadBaseImpl: public std::enable_shared_from_this<ThreadBaseImpl>
23 {
24 public:
25  ThreadBaseImpl(FactoryBaseImpl* pFactory, const std::string& name);
26  virtual ~ThreadBaseImpl();
27 
28  std::string getName() const;
29 
30  virtual void join() = 0;
31 
32 private:
33  FactoryBaseImpl* m_pFactory;
34  std::string m_name;
35 
36 };
37 
38 }
39 #endif // NDSTHREADBASEIMPL_H
Defines all the enumeration and common types used across the NDS library.