Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/X11
File: ThreadsI.h
/************************************************************
[0] Fix | Delete
[1] Fix | Delete
Copyright (c) 1993, Oracle and/or its affiliates. All rights reserved.
[2] Fix | Delete
[3] Fix | Delete
Permission is hereby granted, free of charge, to any person obtaining a
[4] Fix | Delete
copy of this software and associated documentation files (the "Software"),
[5] Fix | Delete
to deal in the Software without restriction, including without limitation
[6] Fix | Delete
the rights to use, copy, modify, merge, publish, distribute, sublicense,
[7] Fix | Delete
and/or sell copies of the Software, and to permit persons to whom the
[8] Fix | Delete
Software is furnished to do so, subject to the following conditions:
[9] Fix | Delete
[10] Fix | Delete
The above copyright notice and this permission notice (including the next
[11] Fix | Delete
paragraph) shall be included in all copies or substantial portions of the
[12] Fix | Delete
Software.
[13] Fix | Delete
[14] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
[15] Fix | Delete
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
[16] Fix | Delete
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
[17] Fix | Delete
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
[18] Fix | Delete
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
[19] Fix | Delete
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
[20] Fix | Delete
DEALINGS IN THE SOFTWARE.
[21] Fix | Delete
[22] Fix | Delete
********************************************************/
[23] Fix | Delete
[24] Fix | Delete
/*
[25] Fix | Delete
[26] Fix | Delete
Copyright 1994, 1998 The Open Group
[27] Fix | Delete
[28] Fix | Delete
Permission to use, copy, modify, distribute, and sell this software and its
[29] Fix | Delete
documentation for any purpose is hereby granted without fee, provided that
[30] Fix | Delete
the above copyright notice appear in all copies and that both that
[31] Fix | Delete
copyright notice and this permission notice appear in supporting
[32] Fix | Delete
documentation.
[33] Fix | Delete
[34] Fix | Delete
The above copyright notice and this permission notice shall be included in
[35] Fix | Delete
all copies or substantial portions of the Software.
[36] Fix | Delete
[37] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
[38] Fix | Delete
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
[39] Fix | Delete
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
[40] Fix | Delete
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
[41] Fix | Delete
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
[42] Fix | Delete
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[43] Fix | Delete
[44] Fix | Delete
Except as contained in this notice, the name of The Open Group shall not be
[45] Fix | Delete
used in advertising or otherwise to promote the sale, use or other dealings
[46] Fix | Delete
in this Software without prior written authorization from The Open Group.
[47] Fix | Delete
[48] Fix | Delete
*/
[49] Fix | Delete
/* $XFree86: xc/lib/Xt/ThreadsI.h,v 3.5 2001/12/14 19:56:31 dawes Exp $ */
[50] Fix | Delete
[51] Fix | Delete
#ifndef _XtThreadsI_h
[52] Fix | Delete
#define _XtThreadsI_h
[53] Fix | Delete
[54] Fix | Delete
#include <X11/XlibConf.h>
[55] Fix | Delete
[56] Fix | Delete
#ifdef XTHREADS
[57] Fix | Delete
[58] Fix | Delete
typedef struct _LockRec *LockPtr;
[59] Fix | Delete
[60] Fix | Delete
typedef void (*ThreadAppProc)(
[61] Fix | Delete
XtAppContext /* app */
[62] Fix | Delete
);
[63] Fix | Delete
[64] Fix | Delete
typedef void (*ThreadAppYieldLockProc)(
[65] Fix | Delete
XtAppContext, /* app */
[66] Fix | Delete
Boolean*, /* push_thread */
[67] Fix | Delete
Boolean*, /* pushed_thread */
[68] Fix | Delete
int* /* level */
[69] Fix | Delete
);
[70] Fix | Delete
[71] Fix | Delete
typedef void (*ThreadAppRestoreLockProc)(
[72] Fix | Delete
XtAppContext /* app */,
[73] Fix | Delete
int, /* level */
[74] Fix | Delete
Boolean* /* pushed_thread */
[75] Fix | Delete
);
[76] Fix | Delete
[77] Fix | Delete
_XFUNCPROTOBEGIN
[78] Fix | Delete
[79] Fix | Delete
extern void (*_XtProcessLock)(
[80] Fix | Delete
void
[81] Fix | Delete
);
[82] Fix | Delete
[83] Fix | Delete
extern void (*_XtProcessUnlock)(
[84] Fix | Delete
void
[85] Fix | Delete
);
[86] Fix | Delete
[87] Fix | Delete
extern void (*_XtInitAppLock)(
[88] Fix | Delete
XtAppContext /* app */
[89] Fix | Delete
);
[90] Fix | Delete
[91] Fix | Delete
_XFUNCPROTOEND
[92] Fix | Delete
[93] Fix | Delete
#define INIT_APP_LOCK(app) if(_XtInitAppLock) (*_XtInitAppLock)(app)
[94] Fix | Delete
#define FREE_APP_LOCK(app) if(app && app->free_lock)(*app->free_lock)(app)
[95] Fix | Delete
[96] Fix | Delete
#define LOCK_PROCESS if(_XtProcessLock)(*_XtProcessLock)()
[97] Fix | Delete
#define UNLOCK_PROCESS if(_XtProcessUnlock)(*_XtProcessUnlock)()
[98] Fix | Delete
#define LOCK_APP(app) if(app && app->lock)(*app->lock)(app)
[99] Fix | Delete
#define UNLOCK_APP(app) if(app && app->unlock)(*app->unlock)(app)
[100] Fix | Delete
[101] Fix | Delete
#define YIELD_APP_LOCK(app,push,pushed,level)\
[102] Fix | Delete
if(app && app->yield_lock) (*app->yield_lock)(app,push,pushed,level)
[103] Fix | Delete
#define RESTORE_APP_LOCK(app,level,pushed)\
[104] Fix | Delete
if(app && app->restore_lock) (*app->restore_lock)(app,level,pushed)
[105] Fix | Delete
[106] Fix | Delete
#define WIDGET_TO_APPCON(w) \
[107] Fix | Delete
XtAppContext app = (w && _XtProcessLock ? \
[108] Fix | Delete
XtWidgetToApplicationContext(w) : NULL)
[109] Fix | Delete
[110] Fix | Delete
#define DPY_TO_APPCON(d) \
[111] Fix | Delete
XtAppContext app = (_XtProcessLock ? XtDisplayToApplicationContext(d): NULL)
[112] Fix | Delete
[113] Fix | Delete
#else /* defined(XTHREADS) */
[114] Fix | Delete
[115] Fix | Delete
#define LOCK_PROCESS
[116] Fix | Delete
#define UNLOCK_PROCESS
[117] Fix | Delete
#define LOCK_APP(app)
[118] Fix | Delete
#define UNLOCK_APP(app)
[119] Fix | Delete
[120] Fix | Delete
#define INIT_APP_LOCK(app)
[121] Fix | Delete
#define FREE_APP_LOCK(app)
[122] Fix | Delete
[123] Fix | Delete
#define WIDGET_TO_APPCON(w)
[124] Fix | Delete
#define DPY_TO_APPCON(d)
[125] Fix | Delete
[126] Fix | Delete
#endif /* !defined(XTHREADS) */
[127] Fix | Delete
#endif /* _XtThreadsI_h */
[128] Fix | Delete
[129] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function