摘要: Function object, also called functor, functional, or functionoid,is a computer programming construct allowing an object to be invoked or called as though it were an ordinary function, usually with the same syntax.Several notes for it:1. In C, there is only function pointer; in C#, there is only dele 阅读全文
posted @ 2010-12-22 17:38 能巴 阅读(205) 评论(0) 推荐(0)
摘要: 线程间、进程间的同步是通过称为“信号量”signal的一类对象来实现的。下面是一个来自msdn的natice code world的列表:Name Relative speed Cross process Resource counting Supported platforms Critical Section Fast No No (exclusive access) 9x/NT/CE Mutex Slow Yes No (exclusive access) 9x/NT/CE Semaphore Slow Yes Automatic 9x/NT Event Slow Yes Yes 9x/ 阅读全文
posted @ 2010-12-22 07:54 能巴 阅读(231) 评论(0) 推荐(0)