摘要: 多线程的pthread_cond_wait后,记住再次检测条件 一般来说,在多线程竞争一个资源的时候,会用到pthread_cond_wait,pthread_cond_signal机制,典型的做法就是在一个使用这个资源的线程(消费者)里面,判断资源如果不可用的话,则pthread_cond_wait,在另外一个线程(生产者)中判断如果资源可用的话,则发一个pthread_cond_sig... 阅读全文
posted @ 2012-08-22 12:53 katago 阅读(280) 评论(0) 推荐(0)
摘要: http://www.denx.de/wiki/view/DULG/UBootCmdGroupEnvironment#Section_5.9.6.3. Remember standard shell quoting rules when the value of a variable shall contain characters that have a special meaning to ... 阅读全文
posted @ 2012-08-22 11:37 katago 阅读(535) 评论(0) 推荐(0)
摘要: http://www.denx.de/wiki/view/DULG/LinuxNfsRoot root=/dev/nfs rw: the root filesystem will be mounted using NFS, and it will be writable. nfsroot=192.168.1.1:/opt/eldk-4.2/ppc_4xx: the NFS... 阅读全文
posted @ 2012-08-22 11:20 katago 阅读(456) 评论(0) 推荐(0)