Closed Tom-Tran closed 8 years ago
Can we change the names? Instead of setCPUAffinity_add
, we can just make it addCPUAffinity
, and instead of setCPUAffinity_list
, we can just make it setCPUAffinity
. For the latter function, because it takes a vector
as its argument, it can have the same name as the existing setCPUAffinity
, because that takes uint64_t
.
Hi Scott, that's a great idea. Please go ahead and change the names.
Hi Scott, didn't realize I can make the changes ha. First time pull request. :) I made the name changes.
No problem, looks good.
The first function is for adding a cpu to the process' current cpuset. The second function is for binding the process to a list of cpus.