Thread++
Client-Server Multithreading with C++
Public Member Functions | List of all members
CTask Class Reference

Task. More...

#include <Task.h>

Inheritance diagram for CTask:

Public Member Functions

 CTask ()
 Default constructor. More...
 
virtual void Perform ()
 Perform the task. More...
 

Detailed Description

This task descriptor, derived from CBaseTask, overrides the CBaseTask::Process() function. The task described is merely to wait a short period of time. Your task processing code should go there.

Constructor & Destructor Documentation

◆ CTask()

CTask::CTask ( )

Default constructor. All this does is call the CBaseTask default constructor. If you have any initialization code, then it should go here.

Member Function Documentation

◆ Perform()

void CTask::Perform ( )
virtual

Perform this task. This function overrides CBaseTask::Perform(). The task described here is merely to wait a short period of time. Your task code should go here instead.