01 2013 档案
摘要:贴下来学习,转自http://www.cnblogs.com/zhiranok/archive/2012/05/13/cpp_multi_thread.html#ifndef _TASK_QUEUE_IMPL_H_#define _TASK_QUEUE_IMPL_H_#include<pthread.h>#include <list>#include <stdexcept>using namespace std;#include "task_queue_i.h"#include "lock.h"namespace ff
阅读全文
摘要:From:真 OO无双http://www.cnblogs.com/oomusou/archive/2007/05/02/734290.htmlAbstractFunction Pointer(C)、Delegate(C#)和Function Object(C++)這三個其實是一樣的功能,所以在此一併討論。Introductionfunction pointer是C語言中最高級的機制,大概很多人還沒上到這裡已經學期末了,所以不少C語言工程師根本不知道C語言有function pointer;而C#的delegate大抵跟C語言的function pointer功能相同,所以很多書說delega
阅读全文