An abstraction for a thread of execution. More...
#include <yarp/os/impl/ThreadImpl.h>
Public Member Functions | |
virtual | ~ThreadImpl () |
int | join (double seconds=-1) |
virtual void | run () |
virtual void | close () |
void | askToClose () |
virtual bool | start () |
bool | isClosing () |
bool | isRunning () |
virtual void | beforeStart () |
virtual void | afterStart (bool success) |
virtual bool | threadInit () |
virtual void | threadRelease () |
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 () |
Static Public Member Functions | |
static int | getCount () |
static long int | getKeyOfCaller () |
static void | yield () |
Public Attributes | |
long | tid {-1} |
std::thread::id | id |
An abstraction for a thread of execution.
Definition at line 25 of file ThreadImpl.h.
|
virtual |
Definition at line 98 of file ThreadImpl.cpp.
|
virtual |
Reimplemented in yarp::os::Thread::Private, and yarp::os::PeriodicThread::Private.
Definition at line 174 of file ThreadImpl.cpp.
void ThreadImpl::askToClose | ( | ) |
Definition at line 165 of file ThreadImpl.cpp.
|
virtual |
Reimplemented in yarp::os::Thread::Private, and yarp::os::PeriodicThread::Private.
Definition at line 170 of file ThreadImpl.cpp.
|
virtual |
Reimplemented in yarp::os::Thread::Private, yarp::os::impl::PortCoreOutputUnit, yarp::os::impl::PortCoreInputUnit, yarp::os::impl::PortCore, yarp::os::impl::FallbackNameServer, and yarp::os::impl::FallbackNameClient.
Definition at line 158 of file ThreadImpl.cpp.
|
static |
Definition at line 244 of file ThreadImpl.cpp.
long int ThreadImpl::getKey | ( | ) |
Definition at line 105 of file ThreadImpl.cpp.
|
static |
Definition at line 111 of file ThreadImpl.cpp.
int ThreadImpl::getPolicy | ( | ) |
Definition at line 307 of file ThreadImpl.cpp.
int ThreadImpl::getPriority | ( | ) |
Definition at line 280 of file ThreadImpl.cpp.
long ThreadImpl::getTid | ( | ) |
Definition at line 334 of file ThreadImpl.cpp.
bool ThreadImpl::isClosing | ( | ) |
Definition at line 234 of file ThreadImpl.cpp.
bool ThreadImpl::isRunning | ( | ) |
Definition at line 239 of file ThreadImpl.cpp.
int ThreadImpl::join | ( | double | seconds = -1 | ) |
Definition at line 123 of file ThreadImpl.cpp.
void ThreadImpl::notify | ( | bool | s | ) |
Definition at line 229 of file ThreadImpl.cpp.
|
inline |
Definition at line 57 of file ThreadImpl.h.
|
virtual |
Reimplemented in yarp::os::Thread::Private, yarp::os::PeriodicThread::Private, yarp::os::impl::PortCoreOutputUnit, yarp::os::impl::PortCoreInputUnit, yarp::os::impl::PortCore, yarp::os::impl::FallbackNameServer, and yarp::os::impl::FallbackNameClient.
Definition at line 154 of file ThreadImpl.cpp.
int ThreadImpl::setPriority | ( | int | priority = -1 , |
int | policy = -1 |
||
) |
Definition at line 249 of file ThreadImpl.cpp.
|
virtual |
Reimplemented in yarp::os::impl::PortCoreOutputUnit, yarp::os::impl::PortCoreInputUnit, and yarp::os::impl::PortCore.
Definition at line 187 of file ThreadImpl.cpp.
void ThreadImpl::synchroPost | ( | ) |
Definition at line 224 of file ThreadImpl.cpp.
void ThreadImpl::synchroWait | ( | ) |
Definition at line 219 of file ThreadImpl.cpp.
|
virtual |
Reimplemented in yarp::os::Thread::Private, and yarp::os::PeriodicThread::Private.
Definition at line 178 of file ThreadImpl.cpp.
|
virtual |
Reimplemented in yarp::os::Thread::Private, and yarp::os::PeriodicThread::Private.
Definition at line 183 of file ThreadImpl.cpp.
|
static |
Definition at line 339 of file ThreadImpl.cpp.
std::thread::id yarp::os::impl::ThreadImpl::id |
Definition at line 70 of file ThreadImpl.h.
long yarp::os::impl::ThreadImpl::tid {-1} |
Definition at line 69 of file ThreadImpl.h.