srblist.h

来自「采集卡的驱动编程,具有较大的参考价值,特别开发视频采集的软件工程师有用」· C头文件 代码 · 共 38 行

H
38
字号
// srblist.h - SRB List class for Video Capture sample
//=============================================================================
//
// Compuware Corporation
// NuMega Lab
// 9 Townsend West
// Nashua, NH 03060  USA
//
// Copyright (c) 1998 Compuware Corporation. All Rights Reserved.
// Unpublished - rights reserved under the Copyright laws of the
// United States.
//
//=============================================================================

#ifndef __SAMPLE_SRBLIST_H__
#define __SAMPLE_SRBLIST_H__

class SrbList : public KList<HW_STREAM_REQUEST_BLOCK>
{
public:
	SrbList(void);

	BOOL AddIfBusy(
		PHW_STREAM_REQUEST_BLOCK pSrb,
		KSpinLock* pLock=NULL
		);

	BOOL RemoveIfAvailable(
		PHW_STREAM_REQUEST_BLOCK& pSrb,
		KSpinLock* pLock=NULL
		);

	BOOLEAN		m_Busy;
	KSpinLock	m_Lock;
};

#endif // __SAMPLE_SRBLIST_H__

⌨️ 快捷键说明

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