Annotation of xinu/sys/frtimer.c, revision 1.1.1.1

1.1       root        1: /* frtimer.c - frtimer */
                      2: 
                      3: #include <conf.h>
                      4: #include <kernel.h>
                      5: #include <frame.h>
                      6: 
                      7: /*------------------------------------------------------------------------
                      8:  *  frtimer  --  countdown and send timeout message to output process
                      9:  *------------------------------------------------------------------------
                     10:  */
                     11: frtimer(netid)
                     12: int    netid;
                     13: {
                     14:        struct  fglob   *fgptr;
                     15: 
                     16:        for (fgptr = &fdata[netid]; TRUE ; ) {
                     17:                for (fgptr->ftfuse++ ; --fgptr->ftfuse > 0 ; )
                     18:                        sleep10(10);
                     19:                if (fgptr->ftfuse == 0)
                     20:                        send(fgptr->ftpid, FRTMSG);
                     21:                suspend(getpid());
                     22:        }
                     23: }

unix.superglobalmegacorp.com

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