qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] sigaction in windows


From: Paolo Bonzini
Subject: Re: [Qemu-devel] sigaction in windows
Date: Mon, 14 May 2012 10:39:44 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Il 14/05/2012 05:47, bang bang ha scritto:
> Hi, everyone:
>      I am very sorry to trouble you, but I have a question that need
> your help. As we know, sigaction is not defined in windows, but qemu can
> run on windows, I want to know how the qemu to implement sigaction so
> that it can run on windows an linux. I am very sorry to not find their
> implementation with windows. 

It doesn't use sigaction. :)  Whenever the POSIX version would send a
signal to a thread, the Windows version does the following:

- call SuspendThread on the receiving thread;

- execute the signal handler code in the sending thread;

- call ResumeThread on the receiving thread.

It is not exactly the same thing, but it is enough for QEMU's needs.

Paolo




reply via email to

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