Original Post
I've been trying to get my head around thread locking and using lock(ddd) { } to no avail.. Here is the scenario (psudocode) class Foo { function moo { ..somecode ..somecode } } I have multiple instances of the class above. The moo method in each instance will be called on separate threads. It's possible that they will be called at the same time and will overlap. This is the problem, I want it so that only once instance at a time can have its the moo function called. I've tried wrapping the contents of moo up with lock(this), etc, and it does not work. Help please!