Click here to Skip to main content
15,883,887 members
Articles / Programming Languages / C++

CRWCriticalSection : Another solution to the readers/writers problem with time-out

Rate me:
Please Sign up or sign in to vote.
4.63/5 (24 votes)
27 Oct 2003CPOL6 min read 80.9K   2.1K   32  
A class for synchronizing reader and writer threads
// RWInfo.cpp: implementation of the CRWInfo class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "RWInfo.h"

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

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CRWInfo::CRWInfo(CRWCriticalSectionTesterDlg * pWnd,int nEventId,COleDateTime  timStart)
{
	m_pWnd = pWnd;
	m_nEventId = nEventId;
	m_timStart = timStart;
}

CRWInfo::~CRWInfo()
{

}

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
Web Developer
United Kingdom United Kingdom
Known as "The Wandering Geek", I have had to often change identities and countries due to the low quality level of the numerous software I have left behind.
Never wrote a software that did more than sorting 3 numbers which actually worked.
Hey but feel free to download my stuff!


Comments and Discussions