Skip to content
Commit 6d347611 authored by Alberto Escolar Piedras's avatar Alberto Escolar Piedras Committed by Alberto Escolar
Browse files

posix: Add cpu_hold() function to better emulate code delay



In native_posix and nrf52_bsim add the cpu_hold() function,
which can be used to emulate the time it takes for code
to execute.
It is very similar to arch_busy_wait(), but while
arch_busy_wait() returns when the requested time has passed,
cpu_hold() ensures that the time passes in the callers
context independently of how much time may pass in some
other context.

Signed-off-by: default avatarAlberto Escolar Piedras <alpi@oticon.com>
parent 570a84c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment