ringPointerTest in thread

This commit is contained in:
Michael Davidsaver
2022-12-20 20:12:04 -08:00
parent b460c2659e
commit 166267a32f
2 changed files with 25 additions and 7 deletions
@@ -758,6 +758,9 @@ LIBCOM_API void epicsStdCall epicsThreadSetPriority(epicsThreadId pthreadInfo,un
assert(epicsThreadOnceCalled);
assert(pthreadInfo);
if(!pthreadInfo->isEpicsThread) {
/* not allowed to avoid dealing with (potentially) different scheduling
* policies (FIFO vs. RR vs. OTHER vs. ...)
*/
fprintf(stderr,"epicsThreadSetPriority called by non epics thread\n");
return;
}