Click here to Skip to main content
15,915,858 members
Articles / General Programming / Threads

Abstract Lock Pattern To Selectively Synchronize An Implementation ("IOC" and DRY)

Rate me:
Please Sign up or sign in to vote.
3.90/5 (7 votes)
30 Sep 2018CPOL3 min read 13.3K   40   10  
This illustrates a simple pattern that provides a lock that can always be invoked; and may be a no-op for a non-synchronized implementation.

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
Founder
United States United States
Don’t ask who’s influenced me. A lion is made up of the lambs he’s digested, and I’ve been reading all my life. — George Seferis <wikipedia.org wiki="" giorgos_seferis="">

Comments and Discussions