YARP
Yet Another Robot Platform
yarp::os::PeriodicThread::Private Class Reference
+ Inheritance diagram for yarp::os::PeriodicThread::Private:

Public Member Functions

 Private (PeriodicThread *owner, double p, ShouldUseSystemClock useSystemClock)
 
void resetStat ()
 
double getEstimatedPeriod () const
 
void getEstimatedPeriod (double &av, double &std) const
 
unsigned int getIterations () const
 
double getEstimatedUsed () const
 
void getEstimatedUsed (double &av, double &std) const
 
void step ()
 
void run () override
 
bool threadInit () override
 
void threadRelease () override
 
bool setPeriod (double period)
 
double getPeriod () const
 
bool isSuspended () const
 
void suspend ()
 
void resume ()
 
void afterStart (bool s) override
 
void beforeStart () override
 
void lock () const
 
void unlock () const
 
- Public Member Functions inherited from yarp::os::impl::ThreadImpl
virtual ~ThreadImpl ()
 
int join (double seconds=-1)
 
virtual void close ()
 
void askToClose ()
 
virtual bool start ()
 
bool isClosing ()
 
bool isRunning ()
 
long int getKey ()
 
void notify (bool s)
 
void notifyOpened (bool s)
 
void synchroWait ()
 
void synchroPost ()
 
int setPriority (int priority=-1, int policy=-1)
 
int getPriority ()
 
int getPolicy ()
 
long getTid ()
 

Additional Inherited Members

- Static Public Member Functions inherited from yarp::os::impl::ThreadImpl
static int getCount ()
 
static long int getKeyOfCaller ()
 
static void yield ()
 
- Public Attributes inherited from yarp::os::impl::ThreadImpl
long tid {-1}
 
std::thread::id id
 

Detailed Description

Definition at line 23 of file PeriodicThread.cpp.

Constructor & Destructor Documentation

◆ Private()

yarp::os::PeriodicThread::Private::Private ( PeriodicThread owner,
double  p,
ShouldUseSystemClock  useSystemClock 
)
inline

Definition at line 62 of file PeriodicThread.cpp.

Member Function Documentation

◆ afterStart()

void yarp::os::PeriodicThread::Private::afterStart ( bool  s)
inlineoverridevirtual

Reimplemented from yarp::os::impl::ThreadImpl.

Definition at line 249 of file PeriodicThread.cpp.

◆ beforeStart()

void yarp::os::PeriodicThread::Private::beforeStart ( )
inlineoverridevirtual

Reimplemented from yarp::os::impl::ThreadImpl.

Definition at line 254 of file PeriodicThread.cpp.

◆ getEstimatedPeriod() [1/2]

double yarp::os::PeriodicThread::Private::getEstimatedPeriod ( ) const
inline

Definition at line 87 of file PeriodicThread.cpp.

◆ getEstimatedPeriod() [2/2]

void yarp::os::PeriodicThread::Private::getEstimatedPeriod ( double &  av,
double &  std 
) const
inline

Definition at line 100 of file PeriodicThread.cpp.

◆ getEstimatedUsed() [1/2]

double yarp::os::PeriodicThread::Private::getEstimatedUsed ( ) const
inline

Definition at line 125 of file PeriodicThread.cpp.

◆ getEstimatedUsed() [2/2]

void yarp::os::PeriodicThread::Private::getEstimatedUsed ( double &  av,
double &  std 
) const
inline

Definition at line 138 of file PeriodicThread.cpp.

◆ getIterations()

unsigned int yarp::os::PeriodicThread::Private::getIterations ( ) const
inline

Definition at line 117 of file PeriodicThread.cpp.

◆ getPeriod()

double yarp::os::PeriodicThread::Private::getPeriod ( ) const
inline

Definition at line 229 of file PeriodicThread.cpp.

◆ isSuspended()

bool yarp::os::PeriodicThread::Private::isSuspended ( ) const
inline

Definition at line 234 of file PeriodicThread.cpp.

◆ lock()

void yarp::os::PeriodicThread::Private::lock ( ) const
inline

Definition at line 259 of file PeriodicThread.cpp.

◆ resetStat()

void yarp::os::PeriodicThread::Private::resetStat ( )
inline

Definition at line 82 of file PeriodicThread.cpp.

◆ resume()

void yarp::os::PeriodicThread::Private::resume ( )
inline

Definition at line 244 of file PeriodicThread.cpp.

◆ run()

void yarp::os::PeriodicThread::Private::run ( )
inlineoverridevirtual

Reimplemented from yarp::os::impl::ThreadImpl.

Definition at line 206 of file PeriodicThread.cpp.

◆ setPeriod()

bool yarp::os::PeriodicThread::Private::setPeriod ( double  period)
inline

Definition at line 223 of file PeriodicThread.cpp.

◆ step()

void yarp::os::PeriodicThread::Private::step ( )
inline

Definition at line 156 of file PeriodicThread.cpp.

◆ suspend()

void yarp::os::PeriodicThread::Private::suspend ( )
inline

Definition at line 239 of file PeriodicThread.cpp.

◆ threadInit()

bool yarp::os::PeriodicThread::Private::threadInit ( )
inlineoverridevirtual

Reimplemented from yarp::os::impl::ThreadImpl.

Definition at line 213 of file PeriodicThread.cpp.

◆ threadRelease()

void yarp::os::PeriodicThread::Private::threadRelease ( )
inlineoverridevirtual

Reimplemented from yarp::os::impl::ThreadImpl.

Definition at line 218 of file PeriodicThread.cpp.

◆ unlock()

void yarp::os::PeriodicThread::Private::unlock ( ) const
inline

Definition at line 264 of file PeriodicThread.cpp.


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