Annotation of researchv9/X11/src/X.V11R1/lib/X/XSynchro.c, revision 1.1

1.1     ! root        1: #include "copyright.h"
        !             2: 
        !             3: /* $Header: XSynchro.c,v 11.5 87/09/11 08:07:45 toddb Exp $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1986  */
        !             5: 
        !             6: #include "Xlibint.h"
        !             7: 
        !             8: 
        !             9: int _XSyncFunction(dpy)
        !            10: register Display *dpy;
        !            11: {
        !            12:        XSync(dpy,0);
        !            13: }
        !            14: 
        !            15: int (*XSynchronize(dpy,onoff))()
        !            16:      register Display *dpy;
        !            17:      int onoff;
        !            18: {
        !            19:         int (*temp)();
        !            20: 
        !            21:        LockDisplay(dpy);
        !            22:        temp = dpy->synchandler;
        !            23:        if (onoff) dpy->synchandler = _XSyncFunction;
        !            24:        else dpy->synchandler = NULL;
        !            25:        UnlockDisplay(dpy);
        !            26:        return (temp);
        !            27: }
        !            28: 
        !            29: int (*XSetAfterFunction(dpy,func))()
        !            30:      register Display *dpy;
        !            31:      int (*func)();
        !            32: {
        !            33:         int (*temp)();
        !            34: 
        !            35:        LockDisplay(dpy);
        !            36:        temp = dpy->synchandler;
        !            37:        dpy->synchandler = func;
        !            38:        UnlockDisplay(dpy);
        !            39:        return (temp);
        !            40: }
        !            41: 

unix.superglobalmegacorp.com

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