tests: poll: revised document error

Some description about poll are not right,
adding some new description to revise it.

Fixes #33712

Signed-off-by: Ningx Zhao <ningx.zhao@intel.com>
This commit is contained in:
Ningx Zhao 2021-04-25 16:23:52 +08:00 committed by Carles Cufí
commit 9136c40833

View file

@ -123,11 +123,10 @@ amount of time, or the special values :c:macro:`K_NO_WAIT` and
:c:macro:`K_FOREVER` to either not wait or wait until an event condition is :c:macro:`K_FOREVER` to either not wait or wait until an event condition is
satisfied and not sooner. satisfied and not sooner.
Only one thread can poll on a semaphore or a FIFO at a time. If a second thread A list of pollers is offered on each semaphore or FIFO and as many events
tries to poll on the same semaphore or FIFO, :c:func:`k_poll` immediately can wait in it as the app wants.
returns with the return value -:c:macro:`EADDRINUSE`. In that case, if other Notice that the waiters will be served in first-come-first-serve order,
conditions passed to :c:func:`k_poll` were met, their state will be set in not in priority order.
the corresponding poll event.
In case of success, :c:func:`k_poll` returns 0. If it times out, it returns In case of success, :c:func:`k_poll` returns 0. If it times out, it returns
-:c:macro:`EAGAIN`. -:c:macro:`EAGAIN`.