MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / redisSetCpuAffinity

Function redisSetCpuAffinity

src/server.cpp:7171–7177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7169}
7170
7171void redisSetCpuAffinity(const char *cpulist) {
7172#ifdef USE_SETCPUAFFINITY
7173 setcpuaffinity(cpulist);
7174#else
7175 UNUSED(cpulist);
7176#endif
7177}
7178
7179/* Send a notify message to systemd. Returns sd_notify return code which is
7180 * a positive number on success. */

Callers 5

rdbSaveBackgroundForkFunction · 0.85
rdbSaveToSlavesSocketsFunction · 0.85
bioProcessBackgroundJobsFunction · 0.85
mainFunction · 0.85

Calls 1

setcpuaffinityFunction · 0.85

Tested by

no test coverage detected