摘要: source: Monitor 获取指定对象的独占锁。 [MethodImpl(MethodImplOptions.InternalCall), SecuritySafeCritical, __DynamicallyInvokable] public static extern void Enter 阅读全文
posted @ 2019-05-17 14:53 前行丶 阅读(924) 评论(0) 推荐(0) 编辑
摘要: source: 释放对象上的锁并阻止当前线程,直到它重新获取该锁。 如果已用指定的超时时间间隔,则线程进入就绪队列。 可以在等待之前退出同步上下文的同步域,随后重新获取该域。 [SecuritySafeCritical] public static bool Wait(object obj, int 阅读全文
posted @ 2019-05-17 10:02 前行丶 阅读(594) 评论(0) 推荐(0) 编辑