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 //---------------------------------------------------------------------- 00026 //---------------------------------------------------------------------- 00027 #ifndef ICL_CORE_THREAD_THREAD_IMPL_H_INCLUDED 00028 #define ICL_CORE_THREAD_THREAD_IMPL_H_INCLUDED 00029 00030 #include <icl_core/BaseTypes.h> 00031 #include <icl_core/os_thread.h> 00032 #include <icl_core/Noncopyable.h> 00033 #include <icl_core/TimeSpan.h> 00034 #include <icl_core/TimeStamp.h> 00035 00036 namespace icl_core { 00037 namespace thread { 00038 00039 class ThreadImpl : protected virtual icl_core::Noncopyable 00040 { 00041 public: 00042 virtual ~ThreadImpl() {} 00043 00044 virtual void cancel() = 0; 00045 virtual icl_core::String getDescription() const = 0; 00046 virtual bool isHardRealtime() const = 0; 00047 virtual bool executesHardRealtime() const = 0; 00048 virtual void join() = 0; 00049 virtual icl_core::ThreadPriority priority() const = 0; 00050 virtual void setDescription(const icl_core::String& description) = 0; 00051 virtual bool setHardRealtime(bool hard_realtime) = 0; 00052 virtual bool setPriority(icl_core::ThreadPriority priority) = 0; 00053 virtual bool start() = 0; 00054 virtual icl_core::ThreadId threadId() const = 0; 00055 }; 00056 00057 } 00058 } 00059 00060 #endif