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