You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
951 B
41 lines
951 B
5 years ago
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
//=======================================================================================//
|
||
|
|
||
|
#ifndef SV_BASEJOB_H
|
||
|
#define SV_BASEJOB_H
|
||
|
|
||
|
//----------------------------------------------------------------------------------------
|
||
|
|
||
|
#undef Yield
|
||
|
|
||
|
#include "spew.h"
|
||
|
#include "vstdlib/jobthread.h"
|
||
|
|
||
|
//----------------------------------------------------------------------------------------
|
||
|
|
||
|
class CBaseJob : public CJob,
|
||
|
public CBaseSpewer
|
||
|
{
|
||
|
public:
|
||
|
CBaseJob( JobPriority_t priority = JP_NORMAL, ISpewer *pSpewer = g_pDefaultSpewer );
|
||
|
|
||
|
enum Error_t
|
||
|
{
|
||
|
ERROR_NONE = -1,
|
||
|
};
|
||
|
|
||
|
const char *GetErrorStr() const { return m_szError; }
|
||
|
|
||
|
protected:
|
||
|
void SetError( int nError, const char *pError = NULL );
|
||
|
|
||
|
private:
|
||
|
int m_nError;
|
||
|
char m_szError[256];
|
||
|
};
|
||
|
|
||
|
//----------------------------------------------------------------------------------------
|
||
|
|
||
|
#endif // SV_BASEJOB_H
|