#pragma once

#include "afxmt.h"
#include "afxwin.h"

// CThreadDialog dialog

class CThreadDialog : public CDialog
{
	DECLARE_DYNAMIC(CThreadDialog)

public:
	CThreadDialog(CWnd* pParent = NULL);   // standard constructor
	virtual ~CThreadDialog();
	virtual void OnClose();

private:
    CSingleLock *lock, *lockMutex;
    CSemaphore *semaphore;
    CMutex *mutex;

// Dialog Data
	enum { IDD = IDD_DIALOG1 };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
    CEdit Edit1;
    afx_msg void OnBnClickedButton1();
    afx_msg void OnBnClickedButton2();
    CButton Button1;
    CButton Button2;
    CEdit Edit2;
};
