summaryrefslogtreecommitdiff
path: root/replay/sv_basejob.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /replay/sv_basejob.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'replay/sv_basejob.h')
-rw-r--r--replay/sv_basejob.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/replay/sv_basejob.h b/replay/sv_basejob.h
new file mode 100644
index 0000000..35c1bfb
--- /dev/null
+++ b/replay/sv_basejob.h
@@ -0,0 +1,40 @@
+//========= 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