Click here to Skip to main content
15,891,733 members
Articles / General Programming / Threads

Smarter than lock(), Cleaner than TryEnter

Rate me:
Please Sign up or sign in to vote.
4.85/5 (16 votes)
11 Apr 2014CPOL3 min read 60.8K   19  
Lock has pitfalls: let's use Monitor.TryEnter with less boilerplate

Views

Daily Counts

License

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


Written By
Scotland Scotland
Hobbyist developer from the UK.
I just make stuff for the benefit of making stuff.

Comments and Discussions