Skip to content
Commit 686b9fff authored by Andy Ross's avatar Andy Ross Committed by Anas Nashif
Browse files

samples/synchronization: Clean up SMP CPU pinning example



There was some code to demonstrate the cpu_mask API here, but it was
asymmetric (only thread B was pinned) and assumed exactly two CPUs.

Start both threads pinned to CPUs 0 and 1 from an external main, and
predicate the pinning on there actually being more than one SMP CPU.

Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent c348a05d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment