UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
thread_manager.hpp
1 /* thread_manager.hpp */
2 /* $Id$ */
3 #ifndef __thread_manager_hpp
4 #define __thread_manager_hpp
5 
6 #ifdef GE_BUILD
7 #include <manager.hpp>
8 #include <ipcmsg_man.hpp>
9 #else
10 #include <dcf/manager.hpp>
11 #include <dcf/ipcmsg_man.hpp>
12 #endif
13 
14 namespace dcf
15 {
17  class ThreadManager : public dcf::Manager
18  {
19  public :
20 
22  ThreadManager();
23 
25  virtual ~ThreadManager();
26 
28  virtual dcf::Manager* clone() const;
29 
31  virtual size_t getUnitsCount() const;
32 
35  virtual dcf::error_t unitAlloc(int unit_id);
36 
39  dcf::error_t nextUnitAlloc(int &id);
40 
43  virtual dcf::error_t unitFree(int unit_id);
44 
47  virtual dcf::error_t unitsFree();
48 
50  virtual dcf::error_t isAllocatedUnit(int unit_id, bool &is_allocated) const;
51 
53  virtual dcf::error_t unitPower(int unit_id, double &power) const;
54 
55  protected:
56 
59  };
60 };
61 #endif /* thread_manager.hpp */
virtual dcf::error_t isAllocatedUnit(int unit_id, bool &is_allocated) const
error_t
Definition: types.hpp:11
Definition: manager.hpp:19
virtual ~ThreadManager()
dcf::IPCMsgMan m_msg_man
Definition: thread_manager.hpp:58
virtual dcf::error_t unitAlloc(int unit_id)
virtual dcf::Manager * clone() const
Definition: thread_manager.hpp:17
Definition: ipcmsg_man.hpp:18
virtual dcf::error_t unitFree(int unit_id)
virtual size_t getUnitsCount() const
virtual dcf::error_t unitsFree()
dcf::error_t nextUnitAlloc(int &id)
virtual dcf::error_t unitPower(int unit_id, double &power) const