IBMStreams / streamsx.utility

(Incubation) Contains utilities for IBM Streams
Other
1 stars 15 forks source link

Added two cpu affinity setting functions. #17

Closed Tom-Tran closed 8 years ago

Tom-Tran commented 8 years ago

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.

scotts commented 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.

Tom-Tran commented 8 years ago

Hi Scott, that's a great idea. Please go ahead and change the names.

Tom-Tran commented 8 years ago

Hi Scott, didn't realize I can make the changes ha. First time pull request. :) I made the name changes.

scotts commented 8 years ago

No problem, looks good.