*/
int adspAttention(register struct adspcmd *pb, register CCBPtr sp)
{
- int s;
register gbuf_t *mp, *nmp;
unsigned char uerr;
}
}
pb->ioDirection = 1; /* outgoing attention data */
- ATDISABLE(s, sp->lock);
if (sp->sapb) { /* Pending attentions already? */
- qAddToEnd(&sp->sapb, pb); /* Just add to end of queue */
- ATENABLE(s, sp->lock);
+ qAddToEnd(&sp->sapb, pb); /* Just add to end of queue */
} else {
- sp->sendAttnData = 1; /* Start off this attention */
- pb->qLink = 0;
- sp->sapb = pb;
- ATENABLE(s, sp->lock);
- CheckSend(sp);
+ sp->sendAttnData = 1; /* Start off this attention */
+ pb->qLink = 0;
+ sp->sapb = pb;
+ CheckSend(sp);
}
pb->ioResult = 1; /* indicate that the IO is not complete */
return 0;