libCom: add epicsThreadCreateOpt()
Variant of epicsThreadCreate() which accepts optional arguments via a structure to allow for compatible addition of new arguments.
This commit is contained in:
@@ -31,6 +31,17 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
epicsThreadId epicsShareAPI epicsThreadCreate (
|
||||
const char * name, unsigned int priority, unsigned int stackSize,
|
||||
EPICSTHREADFUNC funptr,void * parm )
|
||||
{
|
||||
epicsThreadOpts opts;
|
||||
opts.priority = priority;
|
||||
opts.stackSize = stackSize;
|
||||
|
||||
return epicsThreadCreateOpt(name, funptr, parm, &opts);
|
||||
}
|
||||
|
||||
epicsThreadRunable::~epicsThreadRunable () {}
|
||||
void epicsThreadRunable::run () {}
|
||||
void epicsThreadRunable::show ( unsigned int ) const {}
|
||||
|
||||
Reference in New Issue
Block a user