16 pmap =
new HashMap<int64_t, Pair<int,int>, Hash::s64>(n);
33 int x =
pmap->put(seqNum, Pair<int,int>(cx,3), idx);
44 int idx =
pmap->find(seqNum);
45 if (idx == 0)
return pair<int,int>(0,0);
46 Pair<int,int>& vp =
pmap->getValue(idx);
49 return pair<int,int>(vp.first,idx);
62 if (idx == 0 || now < deadlines->key(idx))
63 return pair<int,int>(0,0);
64 Pair<int, int>& vp =
pmap->getValue(idx);
68 return pair<int,int>(-vp.first,idx);
71 deadlines->changekey(idx, now + 1000000000); vp.second--;
72 return pair<int,int>(vp.first,idx);