Skip to content
Commit 780a92fa authored by William Tambe's avatar William Tambe Committed by Carles Cufí
Browse files

samples: smp: pi: keep main thread sleeping until ready



Use `k_sem_take(,K_FOREVER)` in the main thread to keep it sleeping
while worker threads are running. The last worker thread to finish
calculation wakes up the main thread.

Signed-off-by: default avatarWilliam Tambe <williamt@cadence.com>
parent 5ef21f3a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment