Commit 4f4a1131 authored by octal's avatar octal

CpuSet: rename isset to isSet to avoid name-collision with an isset system macro

parent 0d104e8d
...@@ -36,7 +36,7 @@ public: ...@@ -36,7 +36,7 @@ public:
CpuSet& setRange(size_t begin, size_t end); CpuSet& setRange(size_t begin, size_t end);
CpuSet& unsetRange(size_t begin, size_t end); CpuSet& unsetRange(size_t begin, size_t end);
bool isset(size_t cpu) const; bool isSet(size_t cpu) const;
size_t count() const; size_t count() const;
cpu_set_t toPosix() const; cpu_set_t toPosix() const;
......
...@@ -112,7 +112,7 @@ CpuSet::unsetRange(size_t begin, size_t end) { ...@@ -112,7 +112,7 @@ CpuSet::unsetRange(size_t begin, size_t end) {
} }
bool bool
CpuSet::isset(size_t cpu) const { CpuSet::isSet(size_t cpu) const {
if (cpu >= Size) { if (cpu >= Size) {
throw std::invalid_argument("Trying to test invalid cpu number"); throw std::invalid_argument("Trying to test invalid cpu number");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment