zephyr/samples/net/sockets
Christopher Friedt 9d433c89a2 lib: posix: semaphore: use consistent timebase in sem_timedwait
In the Zephyr implementation, `sem_timedwait()` uses a
potentially wildly different timebase for comparison via
`k_uptime_get()` (uptime in ms).

The standard specifies `CLOCK_REALTIME`. However, the real-time
clock can be modified to an arbitrary value via clock_settime()
and there is no guarantee that it will always reflect uptime.

This change ensures that `sem_timedwait()` uses a more
consistent timebase for comparison.

Fixes #46807

Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
2022-06-24 20:12:05 +02:00
..
big_http_download samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
can drivers: can: convert enum can_mode to a bit field 2022-05-11 10:47:54 +02:00
coap_client samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
coap_server all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
dumb_http_server samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
dumb_http_server_mt all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
echo samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
echo_async samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
echo_async_select samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
echo_client logging: Remove logging v1 from the logging 2022-06-16 10:51:15 -04:00
echo_server logging: Remove logging v1 from the logging 2022-06-16 10:51:15 -04:00
http_client samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
http_get samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
net_mgmt samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
packet samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
sntp_client samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
socketpair lib: posix: semaphore: use consistent timebase in sem_timedwait 2022-06-24 20:12:05 +02:00
tcp samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
txtime all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
websocket_client samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00