InternetException
  • Home
  • About
Sign in Subscribe
19 Oct 2022 .NET

Locking with integer

In short:

it will not work because it requires boxing and boxing will create new object for reference in lock every time code is executed so lock statement will not prevent anything.

Further read:

https://intellitect.com/blog/locking-a-block-of-code-with-an-integer/

Published by:

Natan Podbielski

You might also like...

18
Feb

Moving /boot partition

1 min read
18
Feb

Purging smtp services from Debian

1 min read
30
Oct

Enhancing your .NET API with query language

7 min read
28
Oct

HLinq design

18 min read
04
Oct

Disable Xunit Test on specific OS

1 min read
InternetException © 2026
  • Sign up
Powered by Ghost