mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Oops. Fix the job run order.
This commit is contained in:
@@ -60,7 +60,7 @@ bool Job::operator>(const Job& j) const
|
|||||||
return true;
|
return true;
|
||||||
if (mType > j.mType)
|
if (mType > j.mType)
|
||||||
return false;
|
return false;
|
||||||
return mJobIndex < j.mJobIndex;
|
return mJobIndex > j.mJobIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Job::operator>=(const Job& j) const
|
bool Job::operator>=(const Job& j) const
|
||||||
@@ -69,7 +69,7 @@ bool Job::operator>=(const Job& j) const
|
|||||||
return true;
|
return true;
|
||||||
if (mType > j.mType)
|
if (mType > j.mType)
|
||||||
return false;
|
return false;
|
||||||
return mJobIndex <= j.mJobIndex;
|
return mJobIndex >= j.mJobIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Job::operator<(const Job& j) const
|
bool Job::operator<(const Job& j) const
|
||||||
@@ -78,7 +78,7 @@ bool Job::operator<(const Job& j) const
|
|||||||
return false;
|
return false;
|
||||||
if (mType > j.mType)
|
if (mType > j.mType)
|
||||||
return true;
|
return true;
|
||||||
return mJobIndex > j.mJobIndex;
|
return mJobIndex < j.mJobIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Job::operator<=(const Job& j) const
|
bool Job::operator<=(const Job& j) const
|
||||||
@@ -87,7 +87,7 @@ bool Job::operator<=(const Job& j) const
|
|||||||
return false;
|
return false;
|
||||||
if (mType > j.mType)
|
if (mType > j.mType)
|
||||||
return true;
|
return true;
|
||||||
return mJobIndex >= j.mJobIndex;
|
return mJobIndex <= j.mJobIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
void JobQueue::addJob(JobType type, const boost::function<void(Job&)>& jobFunc)
|
void JobQueue::addJob(JobType type, const boost::function<void(Job&)>& jobFunc)
|
||||||
|
|||||||
Reference in New Issue
Block a user