summaryrefslogtreecommitdiff
path: root/Runtime/Threading/Job.h
blob: db89feb4ba5d47ef40ef09f786ac5c6c111dccea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

// 任务的抽象基类
class Job
{
public:
	Job();
	virtual ~Job();

	virtual void Process() = 0;
	virtual bool IsFinished() = 0;
	virtual void Dispacth(void* param) = 0; // call in main thread
	
protected:
	int m_ID; // Job ID

};