zephyr/samples/net/sockets
James Harris b10428163a kernel: sem: add K_SEM_MAX_LIMIT
Currently there is no way to distinguish between a caller
explicitly asking for a semaphore with a limit that
happens to be `UINT_MAX` and a semaphore that just
has a limit "as large as possible".

Add `K_SEM_MAX_LIMIT`, currently defined to `UINT_MAX`, and akin
to `K_FOREVER` versus just passing some very large wait time.

In addition, the `k_sem_*` APIs were type-confused, where
the internal data structure was `uint32_t`, but the APIs took
and returned `unsigned int`. This changes the underlying data
structure to also use `unsigned int`, as changing the APIs
would be a (potentially) breaking change.

These changes are backwards-compatible, but it is strongly suggested
to take a quick scan for `k_sem_init` and `K_SEM_DEFINE` calls with
`UINT_MAX` (or `UINT32_MAX`) and replace them with `K_SEM_MAX_LIMIT`
where appropriate.

Signed-off-by: James Harris <james.harris@intel.com>
2021-03-05 08:13:53 -06:00
..
big_http_download
can drivers: can: Fix building with socket_can_generic.h 2021-02-02 16:46:28 -05:00
coap_client net: coap: clean up token usage in samples and tests 2021-02-02 14:03:01 -05:00
coap_server net: coap: clean up token usage in samples and tests 2021-02-02 14:03:01 -05:00
dumb_http_server net: buf: change avail_count variable to atomic type 2020-10-28 18:45:11 +02:00
dumb_http_server_mt samples: net: dumb_http_server_mt: Fix the OK/FAIL status check 2020-11-20 16:07:59 +02:00
echo logging: Revamp menuconfig 2021-01-26 06:15:42 -05:00
echo_async
echo_async_select tests: add filter for some tests using newlib 2020-12-16 08:57:40 -05:00
echo_client net: openthread: configure required masterkey 2021-01-26 07:29:10 -05:00
echo_server kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
http_client logging: Revamp menuconfig 2021-01-26 06:15:42 -05:00
http_get
net_mgmt samples: net: Adjust the thread priorities 2020-11-20 12:57:29 +02:00
packet kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
sntp_client tests: add filter for some tests using newlib 2020-12-16 08:57:40 -05:00
socketpair
tcp logging: Revamp menuconfig 2021-01-26 06:15:42 -05:00
websocket_client logging: Revamp menuconfig 2021-01-26 06:15:42 -05:00