Googler

两情相悦,又岂在朝朝暮暮。

2011年3月30日

PropertyAccess类 Linq.Expressions 实现

摘要: public class PropertyAccess { public const BindingFlags PropertyBinding = BindingFlags.Public | BindingFlags.Instance | BindingFlags.GetProperty //| BindingFlags.DeclaredOnly ; public readonly Func<object, object> GetValue; public readonly Action<object, object> SetValue; protected Prope 阅读全文

posted @ 2011-03-30 17:32 RockyLOMO 阅读(309) 评论(0) 推荐(0) 编辑

C# LockFreeStack类

摘要: LockFreeStackSpinWait/// <summary> /// SpinWait只有在SMP或多核CPU下才具有使用意义。在单处理器下,旋转非常浪费CPU时间,没有任何意义。 /// 自旋锁特性导致其比较适用一些轻量级,极短时间的多核cpu系统上的锁保护。 /// </summary> public struct SpinWait { public static readonly bool IsSingleProcessor; private const int yieldFrequency = 4000; private const int yieldO 阅读全文

posted @ 2011-03-30 15:56 RockyLOMO 阅读(520) 评论(0) 推荐(0) 编辑

导航

Apple/苹果笔记本 Mac Air MC968CH/A 行货在保 I5 11寸 超级本