signal/slot机制
今天在看google的libjingle的source code;看到sigslot.h时,我比较孤陋,想当然地以为是一个signal(linux下的信号)处理函数,把成员函数connect理解为socket的connect;后来仔细看了下头文件中的说明:
// sigslot.h: Signal/Slot classes
//
// Written by Sarah Thompson (sarah@telergy.com) 2002.
//
// License: Public domain. You are free to use this code however you like, with the proviso that
// the author takes on no responsibility or liability for any use.
//
// QUICK DOCUMENTATION
//
// (see also the full documentation at http://sigslot.sourceforge.net/)
详细文档可以参考:
http://sigslot.sourceforge.net/sigslot.pdf
看了以后,发现这是一个很好的事件处理框架。
由于整个的代码还没看完,到时候再补充详细的理解。这里先开个头,又很久没更新了….








