libCom: joinable threads (posix only)

Add epicsThreadJoin() and epicsThreadOpts::joinable.
For compatibility, default threads aren't joinable
by default.

Currently only POSIX can join.
This commit is contained in:
Michael Davidsaver
2018-04-04 11:23:53 -07:00
parent ca800fa57d
commit d989c8fade
11 changed files with 80 additions and 14 deletions

View File

@@ -38,6 +38,7 @@ epicsThreadId epicsShareAPI epicsThreadCreate (
epicsThreadOpts opts;
opts.priority = priority;
opts.stackSize = stackSize;
opts.joinable = 0;
return epicsThreadCreateOpt(name, funptr, parm, &opts);
}