Annotation of 43BSD/contrib/X/Xlib/XSync.c, revision 1.1.1.1

1.1       root        1: #include <X/mit-copyright.h>
                      2: 
                      3: /* $Header: XSync.c,v 10.4 86/02/01 15:40:36 tony Rel $ */
                      4: /* Copyright    Massachusetts Institute of Technology    1985  */
                      5: 
                      6: #include "XlibInternal.h"
                      7: 
                      8: extern _QEvent *_qfree;
                      9: 
                     10: /* Synchronize with errors and events, optionally discarding pending events. */
                     11: 
                     12: XSync (discard)
                     13:        int discard;  /* 0 or 1 */
                     14: {      
                     15:        register Display *dpy;
                     16:        register XReq *req;
                     17:        XRep rep;
                     18:        GetReq (X_SetUp, 0);
                     19:        _XReply(dpy, &rep);
                     20:        if (discard && dpy->head) {
                     21:            dpy->tail->next = _qfree;
                     22:            _qfree = dpy->head;
                     23:            dpy->head = dpy->tail = NULL;
                     24:            dpy->qlen = 0;
                     25:            }
                     26: }
                     27: 

unix.superglobalmegacorp.com

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