/* rtsapwait.c - RTPM: wait for an indication */
static char *rcsid
= "$Header: /f/osi/rtsap/RCS/rtsapwait.c,v 7.1 91/02/22 09:42:45 mrose Interim $";
* $Header: /f/osi/rtsap/RCS/rtsapwait.c,v 7.1 91/02/22 09:42:45 mrose Interim $
* Revision 7.1 91/02/22 09:42:45 mrose
* Revision 6.0 89/03/18 23:43:34 mrose
* Acquisition, use, and distribution of this module and related
* materials are subject to the restrictions of a license agreement.
* Consult the Preface in the User's Manual for the full terms of
/* \f RT-WAIT.REQUEST (pseudo) */
int RtWaitRequest (sd
, secs
, rti
)
struct RtSAPindication
*rti
;
register struct assocblk
*acb
;
result
= RtWaitRequestAux (acb
, secs
, 0, rti
);
(void) sigiomask (smask
);
int RtWaitRequestAux (acb
, secs
, trans
, rti
)
register struct assocblk
*acb
;
register struct RtSAPindication
*rti
;
if (!trans
&& (acb
-> acb_flags
& ACB_PLEASE
)) {
acb
-> acb_flags
&= ~ACB_PLEASE
;
rti
-> rti_type
= RTI_TURN
;
register struct RtSAPturn
*rtu
= &rti
-> rti_turn
;
rtu
-> rtu_priority
= acb
-> acb_priority
;
return (*acb
-> acb_rtwaitrequest
) (acb
, secs
, trans
, rti
);