예제 #1
0
bool
Job::RemoveParent( Job* parent, MyString &whynot )
{
	if( !parent ) {
		whynot = "parent == NULL";
		return false;
	}
	return RemoveDependency( Q_PARENTS, parent->GetJobID(), whynot );
}
예제 #2
0
bool
Job::RemoveChild( Job* child, MyString &whynot )
{
	if( !child ) {
		whynot = "child == NULL";
		return false;
	}
	return RemoveDependency( Q_CHILDREN, child->GetJobID(), whynot );
}
예제 #3
0
파일: plan.cpp 프로젝트: yangwei024/bigflow
void Plan::ReplaceDependency(Unit* source, Unit* target, Unit* unit) {
    RemoveDependency(source, target);
    AddDependency(source, unit);
    AddDependency(unit, target);
}
예제 #4
0
bool
Job::RemoveDependency( queue_t queue, JobID_t job )
{
	MyString whynot;
	return RemoveDependency( queue, job, whynot );
}