]> begriffs open source - freertos/commit
Posix: fix event_wait_timed() (#346)
authorThomas Pedersen <thomas@adapt-ip.com>
Fri, 11 Jun 2021 00:15:47 +0000 (17:15 -0700)
committerGitHub <noreply@github.com>
Fri, 11 Jun 2021 00:15:47 +0000 (17:15 -0700)
commit6a84f2c1da0f8d9fd1946caa55a336ebacfeb392
tree76cb5278bb6298c7007c319243cd0fabc8438202
parentbad8f01afd2554d6f673f4ea9ea7adb51cd9da33
Posix: fix event_wait_timed() (#346)

event_wait_timed() was ignoring a timeout of 1000 ms.
Presumably this is because pthread_cond_timedwait() only
considers tv_nsec less than one second.

Convert the timeout in miliseconds to second and nanosecond
components to fix this.

Co-authored-by: alfred gedeon <28123637+alfred2g@users.noreply.github.com>
portable/ThirdParty/GCC/Posix/utils/wait_for_event.c