Skip to content
Commit 81cb80d9 authored by Filip Kokosinski's avatar Filip Kokosinski Committed by Fabio Baltieri
Browse files

samples/synchronization: fix thread b pinning



This commit adds a brief thread b suspend while the sample sets its
affinity mask.

If the call to `k_thread_cpu_pin` is being made while the thread is
actively running, then we get `-EINVAL` and the affinity mask is left
unchanged.

Signed-off-by: default avatarFilip Kokosinski <fkokosinski@antmicro.com>
parent 39a70be4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment