Click here to Skip to main content
16,017,986 members
Articles / Programming Languages / C#

How to control parallel thread execution without passing CancellationTokenSource or similar objects into your background code

Rate me:
Please Sign up or sign in to vote.
4.45/5 (8 votes)
21 Feb 2013CPOL2 min read 21.9K   322   11  
This article describes a tiny class that allows to pass a cancellation flag to your background code, without modifying your existing interfaces and function prototypes.

Views

Daily Counts

Downloads

Weekly Counts

License

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


Written By
Ukraine Ukraine
Software Architect - Net. C#, JavaScript
Web Site: http://icocentre.com/

Comments and Discussions