tldm-universe/Ardent/UV/gcidir/include/iflags.h
2024-09-09 17:51:08 -04:00

54 lines
1.6 KiB
C
Executable File

#ifndef h_iflags
#define h_iflags
/******************************************************************************
*
* Declarations for UniVerse signal handling variables and macros
*
* Module %M% Version %I% Date %H%
*
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
* This is unpublished proprietary source code of Ardent Software Inc.
* The copyright notice above does not evidence any actual or intented
* publication of such source code.
*
*******************************************************************************
*
* Maintenence log - insert most recent change descriptions at top
*
* Date.... GTAR# WHO Description.........................................
* 10/14/98 23801 SAP Change copyrights.
* 05/22/96 18423 GMM Module Created
*
*****************************************************************************/
/*****************************************************************************
*
* These declarations have been moved into this file from uvh.smp, so that
* the appropriate indirections can be performed for the NT platform.
*
****************************************************************************/
EXTERN int Icritical;
#ifdef MSWIN
EXTERN int volatile *ntiflags;
#define Iflags (*ntiflags)
/* Icheck will only be called at 'safe' positions, so no need
to check on Icritical, this is necessary for performance reasons */
#define Icheck() { if (Iflags) Ikill(); }
#else
EXTERN int Iflags;
#define Icheck()
#endif
#define Idisable() { Icritical++; }
#define Ienable() { if ((--Icritical == 0) && Iflags) Ikill(); }
#endif /* end of iflags.h */