From 11d2206f40dd1680923ccae6e421a494c2af0992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 12 Jun 2021 22:04:37 +0200 Subject: Add ProcessList_isCPUonline --- unsupported/UnsupportedProcessList.c | 8 ++++++++ unsupported/UnsupportedProcessList.h | 2 ++ 2 files changed, 10 insertions(+) (limited to 'unsupported') diff --git a/unsupported/UnsupportedProcessList.c b/unsupported/UnsupportedProcessList.c index 8b6507bb..16c01558 100644 --- a/unsupported/UnsupportedProcessList.c +++ b/unsupported/UnsupportedProcessList.c @@ -89,3 +89,11 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) { if (!preExisting) ProcessList_add(super, proc); } + +bool ProcessList_isCPUonline(const ProcessList* super, unsigned int id) { + assert(id < super->existingCPUs); + + (void) super; (void) id; + + return true; +} diff --git a/unsupported/UnsupportedProcessList.h b/unsupported/UnsupportedProcessList.h index 10432758..764a1924 100644 --- a/unsupported/UnsupportedProcessList.h +++ b/unsupported/UnsupportedProcessList.h @@ -16,4 +16,6 @@ void ProcessList_delete(ProcessList* this); void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate); +bool ProcessList_isCPUonline(const ProcessList* super, unsigned int id); + #endif -- cgit v1.2.3