Click here to Skip to main content
15,886,840 members
Articles / Programming Languages / C#

Blockader: And Alternate AsyncLock Variant with None of the Usual Limitations

24 May 2020CPOL 4.2K   7   7
An alternate AsyncLock version with full lock-alike semantics, minimal CPU consumption, and support for synchronous, asynchronous, and mixed reentrant scenarios.
This article goes over the syntax and usage for Blockader. The basic idea behind Blockader is that it must be an almost friction-less replacement for your standard lock statements. And a bit about how Blockader works. Firstly, Blockader uses the not well-known ConditionalWeakTable API to attach a metadata package to any synchronization root it is given. Secondly, Blockader uses the AsyncLock API to maintain the whom part mentioned above, such a way that it represents the ambient under which a lock is captured.
We're sorry, but the article you are trying to view was deleted at 27 May 2020.

Please go to the C# Table of Contents to view the list of available articles in this section.