Create a new thread using the given.
More...
#include <misc/pv/thread.h>
|
|
| Config (Runnable *r) |
|
| Config (void(*fn)(void *), void *ptr) |
| template<typename C> |
| | Config (C *inst, void(C::*meth)()) |
|
Config & | name (const std::string &n) |
|
Config & | prio (unsigned int p) |
|
Config & | stack (epicsThreadStackSizeClass s) |
|
Config & | autostart (bool a) |
|
Config & | run (Runnable *r) |
| | Thread will execute Runnable::run().
|
|
Config & | run (void(*fn)(void *), void *ptr) |
| | Thread will execute (*fn)(ptr).
|
| template<typename C> |
| Config & | run (C *inst, void(C::*meth)()) |
| | Thread will execute (inst->*meth)().
|
| template<typename T> |
| Config & | operator<< (T x) |
| | Append to thread name string. Argument must be understood by std::ostream::operator<<.
|
Create a new thread using the given.
be reused.
Defaults: name: "" priority: epicsThreadPriorityLow (aka epics::pvData::lowestPriority) stack size: epicsThreadStackSmall auto start: true runner: nil (must be set explictly)
stuct bar { void meth(); ... } X;
.name("example")
.prio(epicsThreadPriorityHigh));
.prio(epicsThreadPriorityHigh)
<<"example"<<1);
Create a new thread using the given.
- Exceptions
-
| std::logic_error | for improper |
runner)
Definition at line 95 of file thread.h.
◆ Config()
template<typename C>
| epics::pvData::Thread::Config::Config |
( |
C * | inst, |
|
|
void(C::* | meth )() ) |
|
inline |
◆ operator<<()
template<typename T>
| Config & epics::pvData::Thread::Config::operator<< |
( |
T | x | ) |
|
|
inline |
Append to thread name string. Argument must be understood by std::ostream::operator<<.
Definition at line 140 of file thread.h.
◆ run()
template<typename C>
| Config & epics::pvData::Thread::Config::run |
( |
C * | inst, |
|
|
void(C::* | meth )() ) |
|
inline |
◆ Thread
The documentation for this class was generated from the following file: