07 2013 档案

摘要:pthread_cond_wait内部原子地完成了mutex unlock,睡眠当前线程(OS应该有一个队列,哪些线程因等待这个条件变量而阻塞)。如果这两步操作不是原子的话会有什么情况呢?假设第一步mutex lock已经完成时,此时另外一个线程就可以获得mutex,并且cond_notify,那么这个notify会丢失。这是本人的一些理解,若有错误望指出。 阅读全文
posted @ 2013-07-24 09:18 avexer 阅读(217) 评论(0) 推荐(0)
摘要:header file:dlfcn.hfunctions:dlopendlsymdlclose 阅读全文
posted @ 2013-07-23 16:20 avexer 阅读(834) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-07-17 09:22 avexer 阅读(144) 评论(0) 推荐(0)
摘要:cast between different pointer to member representations, compiler may generate incorrect codeAn incorrect cast was detected.C4407 can be generated because of compiler conformance work that was done in Visual C++ 2005. Pointer-to-member now requires a qualified name and the address-of operator (& 阅读全文
posted @ 2013-07-03 20:41 avexer 阅读(394) 评论(0) 推荐(0)
摘要:1. press SHIFT+F10 enter diskpart2.list disk3.select disk 04.clean5.create partition primary size=512006.format quick7.create partition extended8.exit 阅读全文
posted @ 2013-07-01 10:46 avexer 阅读(147) 评论(0) 推荐(0)