Wanted: Cross-process synch that doesn't suffer from AbandonedMutexException

前端 未结 3 517
刺人心
刺人心 2021-01-20 17:52

I have several threads that acquire Mutexes and then terminate.

The mutexes are stored in a main repository, and are properly released when the program exists. Howev

3条回答
  •  不要未来只要你来
    2021-01-20 18:33

    Looks like EventWaitHandle does what I want. It has a constructor that takes a name, so it's perfect for cross-process synch, and it doesn't have this problem.

提交回复
热议问题