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

109 lines
2.1 KiB
C++

//------------------------------------------------------------------------------
// jobportbase.cc
// (C) 2009 Radon Labs GmbH
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "jobs/base/jobportbase.h"
namespace Base
{
__ImplementClass(Base::JobPortBase, 'JBPB', Core::RefCounted);
using namespace Jobs;
using namespace Util;
//------------------------------------------------------------------------------
/**
*/
JobPortBase::JobPortBase() :
isValid(false)
{
// empty
}
//------------------------------------------------------------------------------
/**
*/
JobPortBase::~JobPortBase()
{
n_assert(!this->IsValid());
}
//------------------------------------------------------------------------------
/**
*/
void
JobPortBase::Setup()
{
n_assert(!this->IsValid());
this->isValid = true;
}
//------------------------------------------------------------------------------
/**
*/
void
JobPortBase::Discard()
{
n_assert(this->IsValid());
this->isValid = false;
}
//------------------------------------------------------------------------------
/**
*/
void
JobPortBase::PushJob(const GPtr<Job>& job)
{
(void)job; // shutoff unused parameter warning
// override in subclass!
}
//------------------------------------------------------------------------------
/**
*/
void
JobPortBase::PushJobChain(const Array<GPtr<Job> >& jobs)
{
(void)jobs; // shutoff unused parameter warning
// override in subclass!
}
//------------------------------------------------------------------------------
/**
*/
void
JobPortBase::PushFlush()
{
// override in subclass
}
//------------------------------------------------------------------------------
/**
*/
void
JobPortBase::PushSync()
{
// override in subclass
}
//------------------------------------------------------------------------------
/**
*/
void
JobPortBase::WaitDone()
{
// override in subclass
}
//------------------------------------------------------------------------------
/**
*/
bool
JobPortBase::CheckDone()
{
// override in subclass!
return false;
}
} // namespace Base