IT Nursery
I have the following class. class Test{ public HashSet<string> Data = new HashSet<string>(); } I need to change the field “Data” from different threads, so I would like some...
  • June 2, 2022
  • 0 Comments
C++17 introduced a new lock class called std::scoped_lock. Judging from the documentation it looks similar to the already existing std::lock_guard class. What’s the difference and when should I use...
  • May 22, 2022
  • 0 Comments
The MSDN documentation says that public class SomeObject { public void SomeOperation() { lock(this) { //Access instance variables } } } is “a problem if the instance can be...
  • May 2, 2022
  • 0 Comments