Fork me on GitHub
摘要: 出处:http://www.codeproject.com/Articles/32113/Understanding-SynchronizationContext-Part-IISynchronizationContextMSND解释:SynchronizationContext类是一个基类,可提供不带同步的自由线程上下文。此类实现的同步模型的目的是使公共语言运行时内部的异步/同步操作能够针对不同的异步模型采取正确的行为。此模型还简化了托管应用程序为在不同的同步环境下正常工作而必须遵循的一些要求。同步模型的提供程序可以扩展此类并为这些方法提供自己的实现。一个我们所熟悉的Synchronizat 阅读全文
posted @ 2013-03-24 13:17 zhanjindong 阅读(364) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace SynchronizationContext{ internal interface IQueueReader<T> : IDisposable { T Dequeue(); void ReleaseReader(); } internal interface IQueueWriter<T> : IDisposabl... 阅读全文
posted @ 2013-03-24 12:10 zhanjindong 阅读(419) 评论(0) 推荐(0) 编辑
TOP