doc and callbackSetQueueSize sanity check

This commit is contained in:
Michael Davidsaver
2025-09-30 17:00:07 -07:00
parent 7ae3e4c2df
commit baa4cb5495
3 changed files with 127 additions and 4 deletions

View File

@@ -100,6 +100,10 @@ static int priorityValue[NUM_CALLBACK_PRIORITIES] = {0, 1, 2};
int callbackSetQueueSize(int size)
{
if (size<=0) {
fprintf(stderr, "Queue size must be positive\n");
return -1;
}
if (epicsAtomicGetIntT(&cbState)!=cbInit) {
fprintf(stderr, "Callback system already initialized\n");
return -1;