PVData C++  8.0.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Friends | List of all members
epics::pvData::Thread::Config Class Reference

Create a new thread using the given. More...

#include <misc/pv/thread.h>

Public Member Functions

 Config (Runnable *r)
 
 Config (void(*fn)(void *), void *ptr)
 
template<typename C >
 Config (C *inst, void(C::*meth)())
 
Configname (const std::string &n)
 
Configprio (unsigned int p)
 
Configstack (epicsThreadStackSizeClass s)
 
Configautostart (bool a)
 
Configrun (Runnable *r)
 Thread will execute Runnable::run()
 
Configrun (void(*fn)(void *), void *ptr)
 Thread will execute (*fn)(ptr)
 
template<typename C >
Configrun (C *inst, void(C::*meth)())
 Thread will execute (inst->*meth)()
 
template<typename T >
Configoperator<< (T x)
 Append to thread name string. Argument must be understood by std::ostream::operator<<.
 

Friends

class Thread
 

Detailed Description

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;
// with a static thread name
Thread foo(Thread::Config(&X, &bar::meth)
.name("example")
.prio(epicsThreadPriorityHigh));
// with a constructed thread name
Thread foo(Thread::Config(&X, &bar::meth)
.prio(epicsThreadPriorityHigh)
<<"example"<<1);
Exceptions
std::logic_errorfor improper

runner)

Definition at line 95 of file thread.h.


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