|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH] qemu-kvm: response to SIGUSR1 to start/stop a VCPU (v2) |
Date: | Wed, 24 Nov 2010 00:43:18 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.6 |
On 11/23/2010 10:46 PM, Anthony Liguori wrote:
+static __thread int sigusr1_wfd;While OpenBSD finally updated the default compiler to 4.2.1 from 3.x series, thread local storage is still not supported:Hrm, is there a portable way to do this (distinguish a signal on a particular thread)?
You can use pthread_getspecific/pthread_setspecific. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |