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:
Michael Davidsaver
2018-04-04 11:01:45 -07:00
parent 30268e3577
commit ca800fa57d
6 changed files with 100 additions and 24 deletions

View File

@@ -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 {}