File:  [XINU] / xinu / sys / frtimer.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:40:14 2018 UTC (8 years, 2 months ago) by root
Branches: xinu, MAIN
CVS tags: xinu-19910600, HEAD
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());
	}
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.