commit | 4cf4170b757ef3cce95e3a9f5ba0661607a9e039 | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Sun Oct 19 23:46:10 2014 -0400 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Mon Oct 20 10:38:10 2014 -0400 |
tree | 3b5df016b0175a6eaf270b16a37f67fb78645e2e | |
parent | 67f11acf5c2e2ff8bc81f5f6b86076bcae0593dd [diff] [blame] |
table: Evict unsolicited Data in FIFO order Change-Id: Iba97441e3e23e686da0612810b09108090e64aca Refs: #2043
diff --git a/daemon/table/cs.hpp b/daemon/table/cs.hpp index 67cc611..f683a20 100644 --- a/daemon/table/cs.hpp +++ b/daemon/table/cs.hpp
@@ -64,6 +64,15 @@ { return entry1->isUnsolicited(); } + + bool + operator()(bool isUnsolicited, const cs::Entry* entry) const + { + if (isUnsolicited) + return true; + else + return !entry->isUnsolicited(); + } }; // tags