zephyr/samples/net
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
..
capture samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
cloud all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
common
dhcpv4_client all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
dns_resolve all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
dsa all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
eth_native_posix samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
gptp all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
gsm_modem logging: Remove logging v1 from the logging 2022-06-16 10:51:15 -04:00
ipv4_autoconf all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
lldp samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
lwm2m_client all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
mdns_responder all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
mqtt_publisher samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
openthread/coprocessor samples: net: openthread: Increase main stack size in OT samples 2022-05-11 11:02:57 +02:00
promiscuous_mode all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
sockets lib: posix: semaphore: use consistent timebase in sem_timedwait 2022-06-24 20:12:05 +02:00
stats samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
syslog_net logging: Remove logging v1 from the logging 2022-06-16 10:51:15 -04:00
telnet all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
virtual all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
vlan samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
wifi samples: net: wifi: add mikroe wifi bt click 2022-05-15 21:34:32 +02:00
wpan_serial samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
wpanusb samples: migrate includes to contain <zephyr/...> prefix 2022-05-06 11:29:59 +02:00
zperf samples: net: zperf: Comply with Coccinelle requirements 2022-06-23 11:10:34 +02:00
net.rst