Exemple #1
0
bool
Job::RemoveParent( Job* parent, MyString &whynot )
{
	if( !parent ) {
		whynot = "parent == NULL";
		return false;
	}
	return RemoveDependency( Q_PARENTS, parent->GetJobID(), whynot );
}
Exemple #2
0
bool
Job::RemoveChild( Job* child, MyString &whynot )
{
	if( !child ) {
		whynot = "child == NULL";
		return false;
	}
	return RemoveDependency( Q_CHILDREN, child->GetJobID(), whynot );
}
Exemple #3
0
void Plan::ReplaceDependency(Unit* source, Unit* target, Unit* unit) {
    RemoveDependency(source, target);
    AddDependency(source, unit);
    AddDependency(unit, target);
}
Exemple #4
0
bool
Job::RemoveDependency( queue_t queue, JobID_t job )
{
	MyString whynot;
	return RemoveDependency( queue, job, whynot );
}