Skip to content

Commit 4a47788

Browse files
Move more infrastructure into qvi-split. (#257)
Signed-off-by: Samuel K. Gutierrez <[email protected]>
1 parent 69642ea commit 4a47788

File tree

4 files changed

+483
-467
lines changed

4 files changed

+483
-467
lines changed

src/qvi-hwpool.cc

+4-25
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ qvi_hwpool_cpu_s::cpuset(void)
130130
}
131131

132132
const qvi_hwloc_bitmap_s &
133-
qvi_hwpool_cpu_s::cpuset(void)
134-
const {
133+
qvi_hwpool_cpu_s::cpuset(void) const
134+
{
135135
return m_cpuset;
136136
}
137137

@@ -228,8 +228,8 @@ qvi_hwpool_dev_s::id(
228228
}
229229

230230
const qvi_hwloc_bitmap_s &
231-
qvi_hwpool_dev_s::affinity(void)
232-
const {
231+
qvi_hwpool_dev_s::affinity(void) const
232+
{
233233
return m_affinity;
234234
}
235235

@@ -471,27 +471,6 @@ qvi_hwpool_s::unpack(
471471
return rc;
472472
}
473473

474-
#if 0
475-
/**
476-
* Extend namespace std so we can easily add qvi_devinfo_ts to
477-
* unordered_sets.
478-
*/
479-
namespace std {
480-
template <>
481-
struct hash<qvi_hwpool_dev_s>
482-
{
483-
size_t
484-
operator()(const qvi_hwpool_dev_s &x) const
485-
{
486-
const int a = x.m_id;
487-
const int b = (int)x.type;
488-
const int64_t c = qvi_cantor_pairing(a, b);
489-
return hash<int64_t>()(c);
490-
}
491-
};
492-
}
493-
#endif
494-
495474
/*
496475
* vim: ft=cpp ts=4 sts=4 sw=4 expandtab
497476
*/

0 commit comments

Comments
 (0)