您的位置:首页 > 其它

yate学习--yateclass.h--class YATE_API Runnable

2015-04-30 11:08 281 查看
请注明转载地址: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();
};
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: