Annotation of researchv9/cmd/cfront/libC/task/timer.c, revision 1.1

1.1     ! root        1: #include "task.h"
        !             2: 
        !             3: timer.timer(int d) : (TIMER)
        !             4: {
        !             5:        s_state = IDLE;
        !             6:        insert(d,this);
        !             7: }
        !             8: 
        !             9: timer.~timer()
        !            10: {
        !            11:        if (s_state != TERMINATED) task_error(E_TIMERDEL,this);
        !            12: }
        !            13: 
        !            14: void timer.reset(int d)
        !            15: {
        !            16:        remove();
        !            17:        insert(d,this);
        !            18: }
        !            19: 
        !            20: void timer.print(int)
        !            21: { 
        !            22:        long tt = s_time;
        !            23:        printf("timer %ld == clock+%ld\n",tt,tt-clock);
        !            24: }

unix.superglobalmegacorp.com

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