Skip to content
Snippets Groups Projects
Commit 28f700da authored by benjamin.franksen's avatar benjamin.franksen
Browse files

seq: pvGet/PutComplete return TRUE if no request is pending

We issue a warning message in this case, since this is most
probably a logical error in the SNL program.
parent 123b00f7
No related branches found
No related tags found
No related merge requests found
...@@ -233,6 +233,14 @@ epicsShareFunc boolean epicsShareAPI seq_pvGetComplete(SS_ID ss, VAR_ID varId) ...@@ -233,6 +233,14 @@ epicsShareFunc boolean epicsShareAPI seq_pvGetComplete(SS_ID ss, VAR_ID varId)
return TRUE; return TRUE;
} }
if (!ss->getReq[varId])
{
errlogSevPrintf(errlogMinor,
"pvGetComplete(%s): no pending get request for this variable\n",
ch->varName);
return TRUE;
}
switch (epicsEventTryWait(getSem)) switch (epicsEventTryWait(getSem))
{ {
case epicsEventWaitOK: case epicsEventWaitOK:
...@@ -530,6 +538,13 @@ epicsShareFunc boolean epicsShareAPI seq_pvPutComplete( ...@@ -530,6 +538,13 @@ epicsShareFunc boolean epicsShareAPI seq_pvPutComplete(
ch->varName); ch->varName);
done = TRUE; done = TRUE;
} }
else if (!ss->putReq[varId])
{
errlogSevPrintf(errlogMinor,
"pvPutComplete(%s): no pending put request for this variable\n",
ch->varName);
done = TRUE;
}
else else
{ {
switch (epicsEventTryWait(putSem)) switch (epicsEventTryWait(putSem))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment