Update comm_common.cpp

This commit is contained in:
Eao3piq4e 2022-08-04 18:05:18 +08:00
parent 88840f46d2
commit fb3e4435e0
1 changed files with 9 additions and 0 deletions

View File

@ -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;