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.hu...@embedded-brains.de
PGP     : Public key available on request.

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

Reply via email to