From fb3e4435e0d764283a7b58fa5102a7ad262a7974 Mon Sep 17 00:00:00 2001 From: Eao3piq4e Date: Thu, 4 Aug 2022 18:05:18 +0800 Subject: [PATCH] Update comm_common.cpp --- .../cbb/communication/comm_proxy/comm_common.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gausskernel/cbb/communication/comm_proxy/comm_common.cpp b/src/gausskernel/cbb/communication/comm_proxy/comm_common.cpp index 9a1326c08..b48600d5f 100644 --- a/src/gausskernel/cbb/communication/comm_proxy/comm_common.cpp +++ b/src/gausskernel/cbb/communication/comm_proxy/comm_common.cpp @@ -45,6 +45,15 @@ static bool CommCheckFilterMatch(const char *filter, int len, const char *ip, int port); +/* +function name: SetCPUAffinity +description: The function set the affinity of CPU or CPUs destined by argument cpu_id. +arguments: An integer representing the id of one CPU or more. +return value: void +note: none +date: 2022/8/4 +contact: 18720816902 +*/ void SetCPUAffinity(int cpu_id) { cpu_set_t mask;