A simple and maybe trivial question. When in a thread I wait data for example with
k_pipe_get( &pipe, &buffer, size, &bytesRead, totalSize, K_FOREVER );
is it like call continuously the k_yield()? How the api above works in the underhood?
A simple and maybe trivial question. When in a thread I wait data for example with
k_pipe_get( &pipe, &buffer, size, &bytesRead, totalSize, K_FOREVER );
Hi!
Yes, AFAIK the function will then suspend the calling thread.
You can check what threads are running, and suspended, etc. with the Thread Viewer.
https://nrfconnect.github.io/vscode-nrf-connect/guides/debug_thread_viewer.html