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

📄 实验室dlg.h

📁 操作系统的几个实验
💻 H
字号:
// 实验室Dlg.h : header file
//

#if !defined(AFX_DLG_H__4149C75C_31B0_4D46_855C_E6091DC654C2__INCLUDED_)
#define AFX_DLG_H__4149C75C_31B0_4D46_855C_E6091DC654C2__INCLUDED_

#include "Producer.h"	// Added by ClassView
#include "Consumer.h"
#include "container.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog

class CMyDlg : public CDialog
{
// Construction
public:
	DWORD CurrentTime;
	bool P1state;
	bool Pastate;
	bool PAstate;
	HANDLE hMutex;
	static DWORD WINAPI Consumer02Proc(LPVOID pParam);
	static DWORD WINAPI Consumer01Proc(LPVOID pParam);
	static DWORD WINAPI ProducerP1Proc(LPVOID pParam);
	static DWORD WINAPI ProducerPaProc(LPVOID pParam);
	static DWORD WINAPI ProducerPAProc(LPVOID pParam);

	HANDLE hThread[5];
	class container con;
	class CConsumer C2;
	class CConsumer C1;
	class Producer P1;
	class Producer Pa;
	class Producer PA;
	CMyDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CMyDlg)
	enum { IDD = IDD_MY_DIALOG };
	CEdit	m_c2_state;
	CEdit	m_c1_state;
	CEdit	m_psmall_state;
	CEdit	m_pbig_state;
	CEdit	m_p1_state;
	CEdit	m_buffer_control;
	CListCtrl	m_consumer2_list;
	CListCtrl	m_consumer1_list;
	CListCtrl	m_container_list;
	CListCtrl	m_producer_list3;
	CListCtrl	m_producer_list2;
	CListCtrl	m_producer_list;
	int		m_buffer;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMyDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBuild();
	afx_msg void OnStop();
	afx_msg void OnReflash();
	afx_msg void OnAbout();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLG_H__4149C75C_31B0_4D46_855C_E6091DC654C2__INCLUDED_)

⌨️ 快捷键说明

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