示例#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
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 );
}