[PATCH] Add c++2a binary_semaphore

Sebastian Huber sebastian.huber@embedded-brains.de
Tue Feb 25 08:53:00 GMT 2020


Hello Thomas,

some operating systems provide already an implementation of binary 
semaphores with a compatible API, e.g. RTEMS. It would be nice if I 
could use it in libstdc++. I guess you don't want to have #ifdef 
__rtems__ stuff in this code. What about defining a binary semaphore API 
for gthr.h and then implement the optional futex support in 
libgcc/gthr-posix.h?

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the Libstdc++ mailing list