C#自旋的艺术
摘要:
CODE1: while (status == ServerStatus.Started) { if (*TaskLocker > 0) { for (int i = 0; i != *Level; i++) { ComputeListenerMemory memory = memories[i]; if (*memory.Flag == 0x01) { Interlocked.Decrement(ref *TaskLocker); *memory.Flag = 0x03; Parallel.... 阅读全文
posted @ 2013-07-01 14:18 sumok 阅读(701) 评论(0) 推荐(0) 编辑