Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
icl_core::thread::PeriodicThread Class Reference

#include <PeriodicThread.h>

Inheritance diagram for icl_core::thread::PeriodicThread:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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 ()

Protected Member Functions

void waitPeriod ()

Private Member Functions

virtual void makePeriodic ()

Private Attributes

PeriodicThreadImplm_impl

Detailed Description

Implements a periodic thread.

The thread's main loop can wait until the configured period has elapsed by calling waitPeriod().

Definition at line 42 of file PeriodicThread.h.


Constructor & Destructor Documentation

icl_core::thread::PeriodicThread::PeriodicThread ( const icl_core::String description,
const icl_core::TimeSpan period,
ThreadPriority  priority = 0 
)

Initializes a periodic thread.

Parameters:
descriptionThe thread's description.
periodThe relative period after which the thread is cyclically woken up.
priorityThe thread's priority.

Definition at line 37 of file PeriodicThread.cpp.

Deletes a periodic thread.

Definition at line 93 of file PeriodicThread.cpp.


Member Function Documentation

Makes the thread periodic.

This function is overridden in PeriodicThread.

Reimplemented from icl_core::thread::Thread.

Definition at line 168 of file PeriodicThread.cpp.

Returns the thread's period.

Definition at line 98 of file PeriodicThread.cpp.

Changes the thread's period.

Returns:
true on success, false if the period could not be changed.

Definition at line 103 of file PeriodicThread.cpp.

Sleep until the end of the current period.

Definition at line 130 of file PeriodicThread.cpp.


Member Data Documentation

Reimplemented from icl_core::thread::Thread.

Definition at line 108 of file PeriodicThread.h.


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


schunk_svh_driver
Author(s): Georg Heppner
autogenerated on Fri Aug 28 2015 12:59:20