#include <yarp/run/impl/RunProcManager.h>
|
static int | getCount () |
| Check how many threads are running. More...
|
|
static long int | getKeyOfCaller () |
| Get a unique identifier for the calling thread. More...
|
|
static void | yield () |
| Reschedule the execution of current thread, allowing other threads to run. More...
|
|
static void | setDefaultStackSize (int stackSize) |
| Set the default stack size for all threads created after this point. More...
|
|
Definition at line 47 of file RunProcManager.h.
◆ ZombieHunterThread()
ZombieHunterThread::ZombieHunterThread |
( |
| ) |
|
|
inline |
◆ ~ZombieHunterThread()
virtual ZombieHunterThread::~ZombieHunterThread |
( |
| ) |
|
|
inlinevirtual |
◆ onStop()
void ZombieHunterThread::onStop |
( |
| ) |
|
|
inlineoverridevirtual |
Call-back, called while halting the thread (before join).
This callback is executed by the same thread that calls stop(). It should not be called directly. Override this method to do the right thing for your particular Thread::run.
Reimplemented from yarp::os::Thread.
Definition at line 57 of file RunProcManager.h.
◆ run()
void ZombieHunterThread::run |
( |
| ) |
|
|
inlineoverridevirtual |
Main body of the new thread.
Override this method to do what you want. After Thread::start is called, this method will start running in a separate thread. It is important that this method either keeps checking Thread::isStopping to see if it should stop, or you override the Thread::onStop method to interact with it in some way to shut the new thread down. There is no really reliable, portable way to stop a thread cleanly unless that thread cooperates.
Implements yarp::os::Thread.
Definition at line 63 of file RunProcManager.h.
◆ sigchldHandler()
void ZombieHunterThread::sigchldHandler |
( |
| ) |
|
|
inline |
◆ pipe_sync
int ZombieHunterThread::pipe_sync[2] |
|
protected |
The documentation for this class was generated from the following file: