genesis-3d_engine/Engine/foundation/jobs/base/jobsystembase.cc

50 lines
1.0 KiB
C++
Raw Normal View History

//------------------------------------------------------------------------------
// 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