⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spinlock.cpp

📁 This is a source code for Ethernet Driver This driver was developed on RMI AU1250 CPU for Windows
💻 CPP
字号:
// Spinlock.cpp: implementation of the CSpinlock class.
//
//////////////////////////////////////////////////////////////////////

#include "Spinlock.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CSpinlock::CSpinlock()
{
	memset((void*)&m_SpinLock,0,sizeof(m_SpinLock));
	NdisAllocateSpinLock(&m_SpinLock);
}

CSpinlock::~CSpinlock()
{
	NdisFreeSpinLock(&m_SpinLock);
}


void CSpinlock::Lock(void)
{
	NdisAcquireSpinLock(&m_SpinLock);
}

void CSpinlock::Release(void)
{
	NdisReleaseSpinLock(&m_SpinLock);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -