C#.net how to lock with Monitor.Enter with each users ID, different User ID diferrent locker

前端 未结 0 1305
北海茫月
北海茫月 2021-01-12 03:03
try {
Monitor.Enter(lockObject, ref acquiredLock);

// Code that accesses resources that are protected by the lock. } finally {
if (acquiredLock)
{
             


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题