07 2013 档案
摘要:pthread_cond_wait内部原子地完成了mutex unlock,睡眠当前线程(OS应该有一个队列,哪些线程因等待这个条件变量而阻塞)。如果这两步操作不是原子的话会有什么情况呢?假设第一步mutex lock已经完成时,此时另外一个线程就可以获得mutex,并且cond_notify,那么这个notify会丢失。这是本人的一些理解,若有错误望指出。
阅读全文
摘要:header file:dlfcn.hfunctions:dlopendlsymdlclose
阅读全文
摘要: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 (&
阅读全文
摘要:1. press SHIFT+F10 enter diskpart2.list disk3.select disk 04.clean5.create partition primary size=512006.format quick7.create partition extended8.exit
阅读全文
浙公网安备 33010602011771号