请注明转载地址:http://blog.csdn.net/u012377333/article/details/45392285
这个yate里面的所有线程的基类:
/**
* This class holds the action to execute a certain task, usually in a
* different execution thread.
* 这个类用于保存执行一个特定任务的动作,一般在不同的执行线程
* @short Encapsulates a runnable task
* @short 封装了一个可运行的任务
*/
class YATE_API Runnable
{
public:
/**
* This method is called in another thread to do the actual job.
* 在另一个线程调用此方法来做实际的工作。
* When it returns the job or thread terminates.
* 当它返回工作或线程终止。
*/
virtual void run() = 0;
/**
* Do-nothing destructor, placed here just to shut up GCC 4+
*/
virtual ~Runnable();
};