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

📄 h265vview_thread.h

📁 ZPAV (H265) PC(X86) demo ZPAV (H265) 是 音视频 压缩解压 协议
💻 H
字号:

/*
///////////////////////////////////////////////////////////////////////////////
//                                                                           //
//   Copyright (C) 2006-2008  Beijing,  pengzhen (pengzhenxp@yahoo.com.cn)   //
//                                                                           //
///////////////////////////////////////////////////////////////////////////////
*/

#ifdef __USE_THREAD__

#define thread_init() m_csViewLock = &m_csViewLock1;  \
                      m_hViewThread = NULL; m_ViewMilliSecond = 0; 

#define thread_open() ViewThreadOpen();

#define thread_close() ViewThreadClose();

#define thread_ctrl() m_ViewMilliSecond 

	HANDLE m_hViewThread; 
	CRITICAL_SECTION  m_csViewLock1; 
	CRITICAL_SECTION* m_csViewLock; 
	DWORD  m_ViewMilliSecond ; 

	void ViewThreadOpen(void); 
	void ViewThreadClose(void);

	static void ViewThreadInitialProc(void* pv)  ;
	void ViewThreadProc(void); 
#else 

#define thread_init() m_csViewLock = &m_csViewLock1; m_uTimer = 0; 

#define thread_open() ::InitializeCriticalSection( m_csViewLock ); 

#define thread_close() ::DeleteCriticalSection( m_csViewLock ); 

#define thread_ctrl() m_uTimer 

	UINT m_uTimer;
	CRITICAL_SECTION  m_csViewLock1; 
	CRITICAL_SECTION* m_csViewLock; 
#endif //__USE_THREAD__


⌨️ 快捷键说明

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