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, PeriodicThreadClock clockAccuracy)
 
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 95 of file PeriodicThread.cpp.

Constructor & Destructor Documentation

◆ Private()

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

Definition at line 130 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 315 of file PeriodicThread.cpp.

◆ beforeStart()

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

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

Definition at line 320 of file PeriodicThread.cpp.

◆ getEstimatedPeriod() [1/2]

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

Definition at line 156 of file PeriodicThread.cpp.

◆ getEstimatedPeriod() [2/2]

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

Definition at line 169 of file PeriodicThread.cpp.

◆ getEstimatedUsed() [1/2]

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

Definition at line 194 of file PeriodicThread.cpp.

◆ getEstimatedUsed() [2/2]

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

Definition at line 207 of file PeriodicThread.cpp.

◆ getIterations()

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

Definition at line 186 of file PeriodicThread.cpp.

◆ getPeriod()

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

Definition at line 295 of file PeriodicThread.cpp.

◆ isSuspended()

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

Definition at line 300 of file PeriodicThread.cpp.

◆ lock()

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

Definition at line 325 of file PeriodicThread.cpp.

◆ resetStat()

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

Definition at line 151 of file PeriodicThread.cpp.

◆ resume()

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

Definition at line 310 of file PeriodicThread.cpp.

◆ run()

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

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

Definition at line 269 of file PeriodicThread.cpp.

◆ setPeriod()

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

Definition at line 287 of file PeriodicThread.cpp.

◆ step()

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

Definition at line 224 of file PeriodicThread.cpp.

◆ suspend()

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

Definition at line 305 of file PeriodicThread.cpp.

◆ threadInit()

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

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

Definition at line 276 of file PeriodicThread.cpp.

◆ threadRelease()

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

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

Definition at line 282 of file PeriodicThread.cpp.

◆ unlock()

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

Definition at line 330 of file PeriodicThread.cpp.


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