摘要:
emesene是linux下的msn替代工具,界面很不错,但在root账户下其是无法启动的..解决方法:编辑他的配置文件:gedit /usr/share/emesene/Controller.py注释掉如下代码后即可: if (os.name == 'posix') and (os.getuid() == 0) and (args[4] == False): print "I refuse to run as root. " \ "If you know the risks and still want to do it," \ ... 阅读全文
摘要:
Android里的C++代码经常会看到AutoMutex _l(mLock);AutoMutex其实就是Thread的一种自动的互斥锁,定义在framework/base/include/utils/thread.h中;/* * Automatic mutex. Declare one of these at the top of a function. * When the function returns, it will go out of scope, and release the * mutex. */ typedef Mutex::Autolock AutoMutex;A... 阅读全文