[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[qemu-xen staging] util: Implement qemu_get_thread_id() for OpenBSD



commit 8edbca515c20bdbb3d2dca3c60dcc5b8ca4fc718
Author:     David CARLIER <devnexen@xxxxxxxxx>
AuthorDate: Mon Jul 20 10:25:36 2020 +0100
Commit:     Peter Maydell <peter.maydell@xxxxxxxxxx>
CommitDate: Mon Jul 20 11:35:17 2020 +0100

    util: Implement qemu_get_thread_id() for OpenBSD
    
    Implement qemu_get_thread_id() for OpenBSD hosts, using
    getthrid().
    
    Signed-off-by: David Carlier <devnexen@xxxxxxxxx>
    Reviewed-by: Brad Smith <brad@xxxxxxxxxxxx>
    Message-id: 
CA+XhMqxD6gQDBaj8tX0CMEj3si7qYKsM8u1km47e_-U7MC37Pg@xxxxxxxxxxxxxx
    Reviewed-by: Peter Maydell <peter.maydell@xxxxxxxxxx>
    [PMM: tidied up commit message]
    Signed-off-by: Peter Maydell <peter.maydell@xxxxxxxxxx>
---
 util/oslib-posix.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/util/oslib-posix.c b/util/oslib-posix.c
index 36bf8593f8..d923674624 100644
--- a/util/oslib-posix.c
+++ b/util/oslib-posix.c
@@ -100,6 +100,8 @@ int qemu_get_thread_id(void)
     return (int)tid;
 #elif defined(__NetBSD__)
     return _lwp_self();
+#elif defined(__OpenBSD__)
+    return getthrid();
 #else
     return getpid();
 #endif
--
generated by git-patchbot for /home/xen/git/qemu-xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.