|
|
Xinu for 68000/68010
/* frtimer.c - frtimer */
#include <conf.h>
#include <kernel.h>
#include <frame.h>
/*------------------------------------------------------------------------
* frtimer -- countdown and send timeout message to output process
*------------------------------------------------------------------------
*/
frtimer(netid)
int netid;
{
struct fglob *fgptr;
for (fgptr = &fdata[netid]; TRUE ; ) {
for (fgptr->ftfuse++ ; --fgptr->ftfuse > 0 ; )
sleep10(10);
if (fgptr->ftfuse == 0)
send(fgptr->ftpid, FRTMSG);
suspend(getpid());
}
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.