ThreadImplLxrt38.h
Go to the documentation of this file.
00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
00002 
00003 // -- BEGIN LICENSE BLOCK ----------------------------------------------
00004 // This file is part of FZIs ic_workspace.
00005 //
00006 // This program is free software licensed under the LGPL
00007 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
00008 // You can find a copy of this license in LICENSE folder in the top
00009 // directory of the source code.
00010 //
00011 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
00012 //
00013 // -- END LICENSE BLOCK ------------------------------------------------
00014 
00015 //----------------------------------------------------------------------
00027 //----------------------------------------------------------------------
00028 #ifndef ICL_CORE_LOGGING_THREAD_IMPL_LXRT38_H_INCLUDED
00029 #define ICL_CORE_LOGGING_THREAD_IMPL_LXRT38_H_INCLUDED
00030 
00031 #include <rtai_posix.h>
00032 #include <rtai_sem.h>
00033 
00034 #include <icl_core/os_thread.h>
00035 
00036 #include "ThreadImpl.h"
00037 
00038 #define DEFAULT_STACK_SIZE 0x4000
00039 
00040 namespace icl_core {
00041 namespace logging {
00042 
00043 class Thread;
00044 
00045 class ThreadImplLxrt38 : public ThreadImpl
00046 {
00047 public:
00048   ThreadImplLxrt38(Thread *thread, icl_core::ThreadPriority priority);
00049   virtual ~ThreadImplLxrt38();
00050 
00051   virtual void join();
00052   virtual bool start();
00053 
00054 private:
00055   static void *runThread(void *arg);
00056 
00057   pthread_t m_thread_id;
00058   Thread *m_thread;
00059   ThreadPriority m_priority;
00060 
00061   RT_TASK *m_rt_task;
00062   SEM* m_rt_start_sync;
00063 };
00064 
00065 }
00066 }
00067 
00068 #endif


fzi_icl_core
Author(s):
autogenerated on Tue Aug 8 2017 02:28:04