6e8fbca745
match the genesis editor version 1.3.0.653.
50 lines
1.0 KiB
C++
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
|