zephyr/include/shell
Michał Barnaś 01a01de594 shell: fix polling TXDONE signal by multiple threads
This patch fixes the issue that can cause a deadlock in shell.
When two threads simultaneously poll the TXDONE signal, only one
of them will receive it, leaving second one stalled.
The problem was that shell's context contains k_poll_event objects that
were polled by multiple threads. Polling it overwrites the poller field
that was set by previous thread.
Instead, the k_poll_event object must be created on the stack by every
thread that wants to poll the TXDONE signal.
This makes sure that no thread will be left waiting for this signal
forever.

Signed-off-by: Michał Barnaś <mb@semihalf.com>
2021-09-23 04:18:22 -04:00
..
shell_dummy.h shell: Parametrize dummy shell buffer size 2021-05-26 00:05:56 -04:00
shell_fprintf.h shell: internal api update: fprintf 2021-01-14 12:07:25 +01:00
shell_getopt.h shell: add getopt library support 2021-03-01 09:50:32 -05:00
shell_history.h shell: internal api update: history module 2021-01-14 12:07:25 +01:00
shell_log_backend.h shell: log_backend: Add mpsc_pbuf buffer alignment 2021-05-18 11:22:13 -05:00
shell_rtt.h
shell_telnet.h shell: telnet: Make sure the delayed work becomes idle after canceling 2021-04-12 11:47:24 -04:00
shell_types.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
shell_uart.h shell: internal api update: uart backend 2021-01-14 12:07:25 +01:00
shell.h shell: fix polling TXDONE signal by multiple threads 2021-09-23 04:18:22 -04:00