E
Elisa
Hi,
I'm still confused about the parameter you use for SyncLock (or
Monitor.Enter) calls.
If I want to create the equivalent of critical sections, I should be
able to write something like the following code extract, not?
Private MyLock As New Object
....
SyncLock MyLock
...
End SyncLock
As long as MyLock can be seen by all the threads, each thread should
block when arriving at the SyncLock statement, correct?
Regards,
Elisa
I'm still confused about the parameter you use for SyncLock (or
Monitor.Enter) calls.
If I want to create the equivalent of critical sections, I should be
able to write something like the following code extract, not?
Private MyLock As New Object
....
SyncLock MyLock
...
End SyncLock
As long as MyLock can be seen by all the threads, each thread should
block when arriving at the SyncLock statement, correct?
Regards,
Elisa