util: Implement qemu_get_thread_id() for OpenBSD
commit8edbca515c20bdbb3d2dca3c60dcc5b8ca4fc718
authorDavid CARLIER <devnexen@gmail.com>
Mon, 20 Jul 2020 09:25:36 +0000 (20 10:25 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 20 Jul 2020 10:35:17 +0000 (20 11:35 +0100)
treebfa1c2ea089e96de9a9383805311adaadc17107e
parent19bd6aafbd184be963d2b7c24874e3252a7088b7
util: Implement qemu_get_thread_id() for OpenBSD

Implement qemu_get_thread_id() for OpenBSD hosts, using
getthrid().

Signed-off-by: David Carlier <devnexen@gmail.com>
Reviewed-by: Brad Smith <brad@comstyle.com>
Message-id: CA+XhMqxD6gQDBaj8tX0CMEj3si7qYKsM8u1km47e_-U7MC37Pg@mail.gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: tidied up commit message]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
util/oslib-posix.c