mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
This defines __platform_wait_t as unsigned int for OpenBSD and DragonFly. This means that std::semaphore will use unsigned int by default, and so will benefit from more efficient wait/notify ops if we start to use the OpenBSD futex(2) syscall or the DragonFly umtx(2) syscalls. We don't currently use them, but if we start to in future, it would be an ABI break to change __platform_wait_t later. libstdc++-v3/ChangeLog: PR libstdc++/120527 * include/bits/atomic_wait.h [__OpenBSD__ || __DragonFly]: Use unsigned int for __platform_wait_t. Reviewed-by: Tomasz Kamiński <tkaminsk@redhat.com>