/*
 * 5799-WZQ (C) COPYRIGHT IBM CORPORATION 1988
 * LICENSED MATERIALS - PROPERTY OF IBM
 * REFER TO COPYRIGHT INSTRUCTIONS FORM NUMBER G120-2083
 */
/* $Header:vicelock.h 12.0$ */
/* $ACIS:vicelock.h 12.0$ */
/* $Source: /ibm/acis/usr/sys/afsint/RCS/vicelock.h,v $ */

#if !defined(lint) && !defined(LOCORE) && defined(RCS_HDRS)
static char *rcsidvicelock = "$Header:vicelock.h 12.0$";
#endif

#ifndef ViceLockInclude
#define ViceLockInclude

#define VICELOCKWAIT (30*60)	/* wait 30 minutes */

typedef struct ViceLock
{
    int		lockCount;
    int		lockTime;
} ViceLock;

#define ViceLockCheckLocked(vptr) ((vptr)->lockTime == 0)
#define ViceLockClear(vptr) ((vptr)->lockCount = (vptr)->lockTime = 0)

#endif ViceLockInclude
