Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
锁内引发的事件的处理程序会在锁外执行吗?在引发事件的方法完成后,处理程序何时迭代?
事件处理程序只是委托,将立即在lock.
lock
如果你同步触发事件,同一个线程执行事件处理程序的代码,并且只有在执行后才返回起点并从锁块中存在