Annotation of researchv9/jerq/src/lib/j/wait.c, revision 1.1.1.1

1.1       root        1: #include <jerq.h>
                      2: #include "queue.h"
                      3: own(){
                      4:        register got=MOUSE|SEND|CPU;
                      5:        if(KBDQUEUE.c_cc>0)
                      6:                got|=KBD;
                      7:        if(RCVQUEUE.c_cc>0)
                      8:                got|=RCV;
                      9:        return got;
                     10: }
                     11: wait(r){
                     12:        register u;
                     13:        do; while((u=(own()&r))==0);
                     14:        return u;
                     15: }

unix.superglobalmegacorp.com

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