genesis-3d_engine/Engine/foundation/jobs/base/jobsystembase.h
zhongdaohuan 6e8fbca745 genesis-3d engine version 1.3.
match the genesis editor version 1.3.0.653.
2014-05-05 14:50:33 +08:00

49 lines
1.0 KiB
Objective-C

#pragma once
//------------------------------------------------------------------------------
/**
@class Jobs::JobServerBase
The JobSystem singleton is used to setup and shutdown the
Jobs subsystem.
(C) 2009 Radon Labs GmbH
*/
#include "core/refcounted.h"
#include "core/singleton.h"
//------------------------------------------------------------------------------
namespace Base
{
class JobSystemBase : public Core::RefCounted
{
__DeclareClass(JobSystemBase);
public:
/// constructor
JobSystemBase();
/// destructor
virtual ~JobSystemBase();
/// setup the job system
void Setup();
/// shutdown the job system
void Discard();
/// return true if object has been setup
bool IsValid() const;
protected:
bool isValid;
};
//------------------------------------------------------------------------------
/**
*/
inline bool
JobSystemBase::IsValid() const
{
return this->isValid;
}
} // namespace Jobs
//------------------------------------------------------------------------------