windows-nt/Source/XPSP1/NT/inetsrv/iis/svcs/smtp/server/spinlock.h
2020-09-26 16:20:57 +08:00

41 lines
803 B
C

//+------------------------------------------------------------
//
// Copyright (C) 1998, Microsoft Corporation
//
// File: spinlock.h
//
// Contents: Spinlock package
//
// Classes:
//
// Functions:
//
// History:
// jstamerj 980511 17:25:05: Created.
//
//-------------------------------------------------------------
#include <windows.h>
//
// Simple spinlock package used by CLdapConnection
//
typedef LONG SPIN_LOCK;
typedef LPLONG PSPIN_LOCK;
typedef VOID (__stdcall *PFN_ACQUIRESPINLOCK)(PSPIN_LOCK);
extern PFN_ACQUIRESPINLOCK g_AcquireSpinLock;
VOID InitializeSpinLock(
PSPIN_LOCK psl);
#define AcquireSpinLock (*g_AcquireSpinLock)
VOID AcquireSpinLockSingleProc(
PSPIN_LOCK psl);
VOID AcquireSpinLockMultipleProc(
PSPIN_LOCK psl);
VOID ReleaseSpinLock(
PSPIN_LOCK psl);