Re: [Qemu-devel] [PATCH] qemu-kvm: response to SIGUSR1 to start/stop a VCPU (v2)

Paolo Bonzini
2010-11-23T23:43:28Z

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