icl_core_thread/ThreadImplLxrt33.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
30 //----------------------------------------------------------------------
31 #ifndef ICL_CORE_THREAD_THREAD_IMPL_LXRT33_H_INCLUDED
32 #define ICL_CORE_THREAD_THREAD_IMPL_LXRT33_H_INCLUDED
33 
34 #include <rtai_posix.h>
35 
36 #include <icl_core/os_thread.h>
37 
39 
40 namespace icl_core {
41 namespace thread {
42 
43 class Thread;
44 
49 class ThreadImplLxrt33 : public ThreadImpl, protected virtual icl_core::Noncopyable
50 {
51 public:
53 
54  virtual ~ThreadImplLxrt33();
55 
56  virtual void cancel();
57  virtual icl_core::String getDescription() const { return m_description; }
58  virtual bool isHardRealtime() const;
59  virtual bool executesHardRealtime() const;
60  virtual void join();
61  virtual icl_core::ThreadPriority priority() const;
62  virtual void setDescription(const icl_core::String& description) { m_description = description; }
63  virtual bool setHardRealtime(bool hard_realtime);
64  virtual bool setPriority(icl_core::ThreadPriority priority);
65  virtual bool start();
66  virtual icl_core::ThreadId threadId() const;
67 
68 private:
69  static void *runThread(void *arg);
70 
71  pthread_t m_thread_id;
75 
76  RT_TASK *m_rt_task;
77 };
78 
79 }
80 }
81 
82 #endif
ICL_CORE_OS_IMPL_NS::ThreadId ThreadId
Definition: os_thread.h:49
ThreadImplLxrt33(Thread *thread, const icl_core::String &description, icl_core::ThreadPriority priority)
Contains icl_core::thread::ThreadImpl.
Contains global thread related functions, encapsulated into the icl_core::os namespace.
virtual bool setHardRealtime(bool hard_realtime)
virtual void setDescription(const icl_core::String &description)
virtual bool setPriority(icl_core::ThreadPriority priority)
virtual icl_core::String getDescription() const
std::string String
Definition: BaseTypes.h:43
virtual icl_core::ThreadPriority priority() const
int32_t ThreadPriority
Definition: os_thread.h:50
virtual icl_core::ThreadId threadId() const


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58