genesis-3d_engine/Engine/foundation/jobs/base/jobsystembase.cc
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

50 lines
1.0 KiB
C++

//------------------------------------------------------------------------------
// jobsystembase.cc
// (C) 2009 Radon Labs GmbH
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "jobs/base/jobsystembase.h"
namespace Base
{
__ImplementClass(Base::JobSystemBase, 'JBSB', Core::RefCounted);
//------------------------------------------------------------------------------
/**
*/
JobSystemBase::JobSystemBase() :
isValid(false)
{
// empty
}
//------------------------------------------------------------------------------
/**
*/
JobSystemBase::~JobSystemBase()
{
n_assert(!this->IsValid());
}
//------------------------------------------------------------------------------
/**
*/
void
JobSystemBase::Setup()
{
n_assert(!this->IsValid());
this->isValid = true;
}
//------------------------------------------------------------------------------
/**
*/
void
JobSystemBase::Discard()
{
n_assert(this->IsValid());
this->isValid = false;
}
} // namespace Base