Click here to Skip to main content
15,896,402 members
Articles / High Performance Computing / Parallel Processing

Monitoring and Controlling a Recursing Function in a Worker Thread

Rate me:
Please Sign up or sign in to vote.
4.26/5 (10 votes)
13 Apr 2010CPOL12 min read 45.9K   823   32  
In this case, how to list files in sub folders nicely.
// RecThreadDoc.cpp : implementation of the CRecThreadDoc class
//

#include "stdafx.h"
#include "RecThread.h"

#include "RecThreadDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CRecThreadDoc

IMPLEMENT_DYNCREATE(CRecThreadDoc, CDocument)

BEGIN_MESSAGE_MAP(CRecThreadDoc, CDocument)
	//{{AFX_MSG_MAP(CRecThreadDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRecThreadDoc construction/destruction

CRecThreadDoc::CRecThreadDoc()
{
	// TODO: add one-time construction code here

}

CRecThreadDoc::~CRecThreadDoc()
{
}

BOOL CRecThreadDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CRecThreadDoc serialization

void CRecThreadDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CRecThreadDoc diagnostics

#ifdef _DEBUG
void CRecThreadDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CRecThreadDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CRecThreadDoc commands

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United Kingdom United Kingdom

Comments and Discussions