doc and callbackSetQueueSize sanity check
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user