ThreadComparator Struct Reference
List of all members.
Detailed Description
implements the operator() for comparing threads and inserting them in the
OrderedCVector - Author:
- Group 06
Definition at line 27 of file scheduler.cc.
Constructor & Destructor Documentation
ThreadComparator::ThreadComparator |
( |
|
) |
[inline] |
Member Function Documentation
int ThreadComparator::operator() |
( |
const Thread * |
t1, |
|
|
const Thread * |
t2 | |
|
) |
| | const [inline] |
- Parameters:
-
| t1 | the comparable first Thread |
| t2 | the comparable second Thread |
- Returns:
- -1 if t1 < t2, 0 if t1 == t2, and 1 if t1 > t2
Definition at line 38 of file scheduler.cc.
The documentation for this struct was generated from the following file: