qemu-trivial
[Top][All Lists]
Advanced

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

Re: [PATCH] util: qemu_get_thread_id for OpenBSD


From: Brad Smith
Subject: Re: [PATCH] util: qemu_get_thread_id for OpenBSD
Date: Wed, 15 Jul 2020 03:39:58 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.0

On 7/15/2020 12:54 AM, Thomas Huth wrote:
On 14/07/2020 23.26, David CARLIER wrote:
 From 9c7f54c67d40fae0174ba795fbaad829cd59c264 Mon Sep 17 00:00:00 2001
From: David Carlier <devnexen@gmail.com>
Date: Tue, 14 Jul 2020 23:23:55 +0100
Subject: [PATCH] util: qemu_get_thread_id implementation for OpenBSD.

ussage of getthrid syscall.

Signed-off-by: David Carlier <devnexen@gmail.com>
---
  util/oslib-posix.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/util/oslib-posix.c b/util/oslib-posix.c
index 72907d4d7f..b4f7de83c8 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

  Brad,

since you're listed as OpenBSD maintainer, could you please review above
patch?

Thank you David and Thomas.

Reviewed-by: Brad Smith <brad@comstyle.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]