mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-19 09:18:33 +00:00
44 lines
1.2 KiB
C
Executable File
44 lines
1.2 KiB
C
Executable File
/* $Id: ldeXdefs.h,v 1.2 1999/01/03 02:06:07 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */
|
|
|
|
/* * * * * X defs for all files in Medley * * * * */
|
|
|
|
|
|
|
|
/************************************************************************/
|
|
/* */
|
|
/* (C) Copyright 1989-92 Venue. All Rights Reserved. */
|
|
/* Manufactured in the United States of America. */
|
|
/* */
|
|
/* The contents of this file are proprietary information */
|
|
/* belonging to Venue, and are provided to you under license. */
|
|
/* They may not be further distributed or disclosed to third */
|
|
/* parties without the specific permission of Venue. */
|
|
/* */
|
|
/************************************************************************/
|
|
|
|
|
|
#ifndef __LDEXDEF__
|
|
|
|
#define __LDEXDEF__ 1
|
|
#include <signal.h>
|
|
#ifdef LOCK_X_UPDATES
|
|
#define XLOCK { XLocked++; /* printf("L"); fflush(stdout);*/}
|
|
#define XUNLOCK \
|
|
{ XLocked--;/* printf("U"); fflush(stdout);*/ \
|
|
if (XNeedSignal) \
|
|
{ \
|
|
XNeedSignal = 0; \
|
|
kill(getpid(), SIGPOLL); \
|
|
}; \
|
|
}
|
|
#else
|
|
#define XLOCK
|
|
#define XUNLOCK
|
|
#endif /* LOCK_X_UPDATES */
|
|
|
|
extern int XLocked;
|
|
extern int XNeedSignal;
|
|
/* this is !0 if we're locked; it should be 0 or larger always */
|
|
#endif
|
|
|