-
- Downloads
Allow creation of a new sched::thread pinned to a specific CPU.
Previously, we had the option to create a pinned thread, but it always runs on the same CPU as the current thread, which is kind of odd. Changed the boolean attribute "pinned" to a cpu* attribute specifying the cpu to pin to. Example code to run a start a new thread pinned on cpu 1: new sched::thread([&]{...}, sched::thread::attr(sched::cpus[1])); I need this feature to test the cross-CPU TLB flushing feature - I need to be able to run two threads on two different CPUs.
Loading
Please register or sign in to comment