Click here to Skip to main content
15,891,431 members
Articles / Programming Languages / XML

Timeout Functions

Rate me:
Please Sign up or sign in to vote.
4.95/5 (29 votes)
11 Dec 2008CPOL8 min read 76.7K   930   57  
This article explains about executing a function within a time limit. Also includes a helper class which helps to implement timeout functions easily. This article deals with running multiple timeout processes each with time limit.

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TimeoutFunctions", "TimeoutFunction\TimeoutFunctions.csproj", "{2B7CF76A-FC55-41E5-BE0F-71BC70686B69}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TimeoutFunctions.Tests", "TimeoutFunctions.Tests\TimeoutFunctions.Tests.csproj", "{AF7D871A-7082-4588-AD29-83DF427EE0A2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TimeoutFunctions.Sample", "TimeoutFunctions.Sample\TimeoutFunctions.Sample.csproj", "{035C0870-EC9F-48E7-BAF2-E6190BDBB63D}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{2B7CF76A-FC55-41E5-BE0F-71BC70686B69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{2B7CF76A-FC55-41E5-BE0F-71BC70686B69}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{2B7CF76A-FC55-41E5-BE0F-71BC70686B69}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{2B7CF76A-FC55-41E5-BE0F-71BC70686B69}.Release|Any CPU.Build.0 = Release|Any CPU
		{AF7D871A-7082-4588-AD29-83DF427EE0A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{AF7D871A-7082-4588-AD29-83DF427EE0A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{AF7D871A-7082-4588-AD29-83DF427EE0A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{AF7D871A-7082-4588-AD29-83DF427EE0A2}.Release|Any CPU.Build.0 = Release|Any CPU
		{035C0870-EC9F-48E7-BAF2-E6190BDBB63D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{035C0870-EC9F-48E7-BAF2-E6190BDBB63D}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{035C0870-EC9F-48E7-BAF2-E6190BDBB63D}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{035C0870-EC9F-48E7-BAF2-E6190BDBB63D}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

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
Software Developer ThoughtWorks
India India
Call me Navaneeth Some years ago--never mind how long precisely, I was doing programs with C and C++. When .NET came, I started with C#,ASP.NET and SQL Server.

Comments and Discussions