== 运算符是一个比较函数,由 OMTimerManager 用来处理其堆结构。此运算符确定 destination 和 Timeout 的当前值是否与指定超时的当前值相同。
这种比较将生成以下其中一个值:
Public
int operator == (OMTimeout& tn) {
OMBoolean matchDest = getDestination() ==
tn.getDestination();
OMBoolean matchId = ((getTimeoutId() ==
tn.getTimeoutId()) ||
(getTimeoutId() == OMEventAnyEventId) ||
(OMEventAnyEventId == tn.getTimeoutId()));
return (matchDest && matchId);}
tn
指定超时的地址