Public Member Functions | Private Attributes | List of all members
BurnThread Class Reference
Inheritance diagram for BurnThread:
Inheritance graph
[legend]

Public Member Functions

 BurnThread (size_t num)
 
virtual void run ()
 
virtual ~BurnThread ()
 
- Public Member Functions inherited from icl_core::thread::PeriodicThread
icl_core::TimeSpan period () const
 
 PeriodicThread (const icl_core::String &description, const icl_core::TimeSpan &period, ThreadPriority priority=0)
 
bool setPeriod (const icl_core::TimeSpan &period)
 
virtual ~PeriodicThread ()
 
- Public Member Functions inherited from icl_core::thread::Thread
void cancel ()
 
bool checkHardRealtime ()
 
bool execute () const
 
bool executesHardRealtime () const
 
icl_core::String getDescription () const
 
bool isHardRealtime () const
 
void join ()
 
virtual void onStop ()
 
icl_core::ThreadPriority priority () const
 
bool running () const
 
void setDescription (const icl_core::String &description)
 
bool setHardRealtime (bool hard_realtime=true)
 
bool setPriority (icl_core::ThreadPriority priority)
 
bool start ()
 
void stop ()
 
 Thread (const icl_core::String &description, icl_core::ThreadPriority priority=0)
 
icl_core::ThreadId threadId () const
 
const char * threadInfo () const
 
bool threadSelf () const
 
bool wait ()
 
bool wait (const icl_core::TimeStamp &timeout)
 
bool wait (const icl_core::TimeSpan &timeout)
 
virtual ~Thread ()
 

Private Attributes

size_t m_num
 

Additional Inherited Members

- Static Public Member Functions inherited from icl_core::thread::Thread
static icl_core::ThreadId selfId ()
 
- Protected Member Functions inherited from icl_core::thread::PeriodicThread
void waitPeriod ()
 
- Protected Member Functions inherited from icl_core::Noncopyable
 Noncopyable ()
 
virtual ~Noncopyable ()
 

Detailed Description

Thread for burning away 10% of CPU time.

Definition at line 110 of file ts_PeriodicThread.cpp.

Constructor & Destructor Documentation

BurnThread::BurnThread ( size_t  num)
inline

Definition at line 114 of file ts_PeriodicThread.cpp.

virtual BurnThread::~BurnThread ( )
inlinevirtual

Definition at line 119 of file ts_PeriodicThread.cpp.

Member Function Documentation

virtual void BurnThread::run ( )
inlinevirtual

This is the function running in the thread. This has to be reimplemented from derived classes. If you start the thread by calling Start() this function is executed in the thread. If you call don't want that function to be executed in the thread you could call it directly in your derived class.

Implements icl_core::thread::Thread.

Definition at line 122 of file ts_PeriodicThread.cpp.

Member Data Documentation

size_t BurnThread::m_num
private

Definition at line 140 of file ts_PeriodicThread.cpp.


The documentation for this class was generated from the following file:


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