ringPointerTest in thread

This commit is contained in:
Michael Davidsaver committed 2022-12-20 20:12:04 -08:00
1 parent b460c2659e
commit 166267a32f
2 files changed
+25 -7

No files matched your search

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