From 2831bee6e6708d0d61304e77dda50e70c3cbb7b4 Mon Sep 17 00:00:00 2001 From: Terraneo Federico <fede.tft@miosix.org> Date: Sun, 26 Mar 2023 17:50:26 +0200 Subject: [PATCH] Added notes for compiler patches --- miosix/_tools/compiler/gcc-9.2.0-mp3.1/TODO | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 miosix/_tools/compiler/gcc-9.2.0-mp3.1/TODO diff --git a/miosix/_tools/compiler/gcc-9.2.0-mp3.1/TODO b/miosix/_tools/compiler/gcc-9.2.0-mp3.1/TODO new file mode 100644 index 00000000..01d01ed2 --- /dev/null +++ b/miosix/_tools/compiler/gcc-9.2.0-mp3.1/TODO @@ -0,0 +1,12 @@ + +Update sys/lock.h make pthread_mutex_t compatible with future decisions to +replace the custom list with IntrusiveList. +Update _pthreadtypes.h removing the forward declaration of WaitingList and +change pthread_cond_t to be two opaque pointers, comment that it should have +a memory layout compatible with IntrusiveList. + +In libstdc++ header condition_variable the __wait_until_impl checks for timeout +in this way: +__gthread_cond_timedwait(&_M_cond, __lock.mutex()->native_handle(), &__ts); +return (__clock_t::now() < __atime ? cv_status::no_timeout : cv_status::timeout); +use the return value of pthread_cond_timedwait instead to optimize code -- GitLab