util/oslib: Returns the real thread identifier on FreeBSD and NetBSD
commit9548a891738424a09eae9ef6e3826ef930cdd598
authorDavid Carlier <devnexen@gmail.com>
Tue, 26 May 2020 07:25:26 +0000 (26 08:25 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Jun 2020 16:10:48 +0000 (10 12:10 -0400)
treee19b912e308f0de98c9b7cfb9ab9efe0a273bde3
parentea39f9b643959d759b8643b4c11c4cbb3683d0ff
util/oslib: Returns the real thread identifier on FreeBSD and NetBSD

getpid is good enough in a mono thread context, however thr_self/_lwp_self
reflects the real current thread identifier from a given process.

Signed-off-by: David Carlier <devnexen@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: David Carlier <devnexen@gmail.com>
util/oslib-posix.c