jba pact now used to test for asyn processing, not status
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
* .02 11-11-91 jba Moved set and reset of alarm stat and sevr to macros
|
||||
* .03 02-05-92 jba Changed function arguments from paddr to precord
|
||||
* .04 02-28-92 jba ANSI C changes
|
||||
* .05 04-10-92 jba pact now used to test for asyn processing, not status
|
||||
*/
|
||||
|
||||
|
||||
@@ -96,7 +97,7 @@ struct stringoutdset { /* stringout input dset */
|
||||
DEVSUPFUN init;
|
||||
DEVSUPFUN init_record; /*returns: (-1,0)=>(failure,success)*/
|
||||
DEVSUPFUN get_ioint_info;
|
||||
DEVSUPFUN write_stringout;/*(-1,0,1)=>(failure,success,don't Continue*/
|
||||
DEVSUPFUN write_stringout;/*(-1,0)=>(failure,success)*/
|
||||
};
|
||||
void monitor();
|
||||
|
||||
@@ -133,6 +134,7 @@ static long process(pstringout)
|
||||
{
|
||||
struct stringoutdset *pdset = (struct stringoutdset *)(pstringout->dset);
|
||||
long status=0;
|
||||
unsigned char pact=pstringout->pact;
|
||||
|
||||
if( (pdset==NULL) || (pdset->write_stringout==NULL) ) {
|
||||
pstringout->pact=TRUE;
|
||||
@@ -158,11 +160,10 @@ static long process(pstringout)
|
||||
if(status==0) {
|
||||
status=(*pdset->write_stringout)(pstringout); /* write the new value */
|
||||
}
|
||||
/* check if device support set pact */
|
||||
if ( !pact && pstringout->pact ) return(0);
|
||||
pstringout->pact = TRUE;
|
||||
|
||||
/* status is one if an asynchronous record is being processed*/
|
||||
if (status==1) return(0);
|
||||
|
||||
tsLocalTime(&pstringout->time);
|
||||
|
||||
/* check event list */
|
||||
|
||||
Reference in New Issue
Block a user