diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-09-04 19:08:25 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-09-04 19:08:25 +0100 |
commit | 24940548be036f5243d3cd623b2ea3abf0dabbfe (patch) | |
tree | 665338179ff85e3c7ef753335a3bb11d4f81067b /vl.c | |
parent | 2b483739791b33c46e6084b51edcf62107058ae1 (diff) |
util/qemu-thread-posix.c: Replace OS ifdefs with CONFIG_HAVE_SEM_TIMEDWAITbetter-ifdefs
In qemu-thread-posix.c we have two implementations of the
various qemu_sem_* functions, one of which uses native POSIX
sem_* and the other of which emulates them with pthread conditions.
This is necessary because not all our host OSes support
sem_timedwait().
Instead of a hard-coded list of OSes which don't implement
sem_timedwait(), which gets out of date, make configure
test for the presence of the function and set a new
CONFIG_HAVE_SEM_TIMEDWAIT appropriately.
In particular, newer NetBSDs have sem_timedwait(), so this
commit will switch them over to using it. OSX still does
not have an implementation.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'vl.c')
0 files changed, 0 insertions, 0 deletions