ChinaUnix.net
相关文章推荐:

Hazard pointer 实现 lockfree

http://blog.csdn.net/softarts/archive/2009/04/08/4056465.aspx 没事写了这篇文章,正好看到Intel在搞多核编程征文,就去参加了,麻烦看到的人给投个票:) 投票地址:http://intel.csdn.net/multicoreblog/show.aspx?page=1(倒数第4页,谢谢支持) MemoryPool的lockfree实现-2009/04/07 MemoryPool已经是一个非常古老的话题了,关于此方面的文章比比皆是,在Addison-Wesley 1999年出版的

by softarts - Linux环境编程 - 2009-04-09 16:34:53 阅读(2611) 回复(0)

相关讨论

Hi all, I found the following function, which is used to remove the head of a linked list. void RemoveHead(node **head) { node *temp; if (head && *head) { /* Corrected code */ temp = (*head)->next; free(*head); *head = temp; } } 1. Why is the purpose of 'head' in the 'if' condition? Shouldn't '*head' suffice? 2. This function has an argument, which is a po...

by bsd_lite - C/C++ - 2008-10-17 21:58:56 阅读(1458) 回复(4)

See the registration functiion of notifier chain: static int notifier_chain_register(struct notifier_block **nl, struct notifier_block *n) { while ((*nl) != NULL) { if (n->priority > (*nl)->priority) break; nl = &((*nl)->next); } n->next = *nl; rcu_assign_pointer(*nl, n); return 0; } Why the first parameter is of type pointer to pointer, ...

by edwinrong - Linux文档专区 - 2009-07-01 20:48:40 阅读(537) 回复(0)

如题 有了license还是跑不起来

by nuclearxin - Shell - 2010-10-08 18:02:28 阅读(1474) 回复(1)

pointer是指针的意思吧 point是点的意思,偶在学习和工作中接触到他们的机会都比较多 上周去买了本c和指针,现在每天早上起来看看,感觉还不错,每个男人都喜欢梦想,偶也不例外。 最近一周在看《金石奇缘》--tvb新作,呵呵,可能只有15集哦,我想,港台剧看的不少,特别经典的如《流金岁月》…… 的确看的非常舒服,看多了不免想感慨一下,听的最多的一句是“其实做人呢,最重要是开心”,所谓见仁见智,我在每部港剧中都...

by net_liufeng - Linux文档专区 - 2008-04-23 19:58:31 阅读(546) 回复(0)

A.7.1 pointer Generation If the type of an expression or subexpression is ``array of T,'' for some type T, then the value of the expression is a pointer to the first object in the array, and the type of the expression is altered to ``pointer to T.'' This conversion does not take place if the expression is in the operand of the unary & operator, or of ++, --, sizeof, or as the left operand of an as...

by shihyu - C/C++ - 2007-06-08 20:32:50 阅读(1267) 回复(2)

本帖最后由 yshihyu 于 2013-11-26 23:19 编辑 [code]#include using namespace std; class CBaseA { public: void test3() {} char m_A[32]; void test1() {} void test2() {} CBaseA() { cout << "CBaseA this address=" << this << endl; } }; class CBaseB : CBaseA { public: char m_B[64]; void test() {} CBaseB() { cout << "CBaseB this address=...

by yshihyu - C/C++ - 2013-12-18 01:19:26 阅读(2609) 回复(9)

你们感觉那个好, 我比较喜欢pointer,而且this本身就是个指针。:mrgreen: 还有就是我用Pioneer比较习惯了。 兄弟们说说自己的感想。

by fender0107401 - C/C++ - 2013-10-12 16:22:01 阅读(2280) 回复(4)

[code] #include #include #include #include // For bool, false, true #include // For strcmp() struct Family * get_person(void); struct Famliy *pmember1; struct Family *pmember2; bool set_ancestry_fuck(struct Famliy *pmember1, struct Family *pmember2); struct Date { int day; int month; int year; }; struct Family { st...

by 蓝天下的乌鸦 - C/C++ - 2012-11-14 14:51:34 阅读(1987) 回复(6)

typedef void (SafeArray::*MFPTR1)(int, int); typedef int (SafeArray::*MFPTR2)(int); MFPTR1 mfPtr1 = 0; MFPTR2 mfPtr2 = 0; mfPtr1 = &SafeArray::set; mfPtr2 = &SafeArray::get; 为什么成员函数指针 需要使用 & 取地址? 而一般函数指针 不需要用到 & ? 谢谢

by shihyu - C/C++ - 2011-12-03 11:56:51 阅读(1949) 回复(2)

程序大体如下 void function::remove(U32 clientId) { vector ::iterator iter; /*Data为一个定义的类 vector ::iterator iter_client; for (iter = Data.begin(); iter != Data.end(); iter++) { for( iter_client = (*iter)->_clientId.begin();iter_client != (*iter)->_clientId.end();iter_client++ ) { if( *iter_client == clientId ) { (*iter...

by liumilan2009 - C/C++ - 2011-02-11 18:54:56 阅读(2111) 回复(0)