Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Testing reader/writer locks

, 20 Jan 2009 CPOL
This article describes testing the results of reader/writer locks on Windows XP/Vista Uniprocessor and Multi-core PCs.
#pragma once
#ifndef _WINDOWS_

	#include <windows.h>


#include <stdexcept>

// Exception object that is thrown from the various classes below.
class SystemError : public std::runtime_error
	SystemError(const DWORD info) 
	:   std::runtime_error(""),

	virtual ~SystemError()

	SystemError(const SystemError& rExcept) 
	:  std::runtime_error(rExcept),

	SystemError& operator=(const SystemError& rExcept) 
		//		std::runtime_error::operator=(rExcept);
		static_cast<std::runtime_error&>(*this) = rExcept;
		info_ = rExcept.info_; 
		return *this; 

	DWORD info() const
		return info_;

	DWORD info_;

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.


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


About the Author

Valery Grebnev
Software Developer
Canada Canada
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.1411023.1 | Last Updated 21 Jan 2009
Article Copyright 2009 by Valery Grebnev
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid