* [Qemu-devel] sigaction in windows
@ 2012-05-14 3:47 bang bang
2012-05-14 8:39 ` Paolo Bonzini
0 siblings, 1 reply; 5+ messages in thread
From: bang bang @ 2012-05-14 3:47 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 415 bytes --]
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.
Thank you veye much!!!
--
ADDRESS:清华大学FIT楼4-308
TEL: 156-1166-2737
[-- Attachment #2: Type: text/html, Size: 506 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] sigaction in windows
2012-05-14 3:47 [Qemu-devel] sigaction in windows bang bang
@ 2012-05-14 8:39 ` Paolo Bonzini
2012-05-14 15:51 ` Mulyadi Santosa
0 siblings, 1 reply; 5+ messages in thread
From: Paolo Bonzini @ 2012-05-14 8:39 UTC (permalink / raw)
To: bang bang; +Cc: qemu-devel
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] sigaction in windows
2012-05-14 8:39 ` Paolo Bonzini
@ 2012-05-14 15:51 ` Mulyadi Santosa
2012-05-14 15:55 ` Paolo Bonzini
0 siblings, 1 reply; 5+ messages in thread
From: Mulyadi Santosa @ 2012-05-14 15:51 UTC (permalink / raw)
To: qemu-devel
Hi...
On Mon, May 14, 2012 at 3:39 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
> 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;
you meant, "the receiving thread", right?
>
> - call ResumeThread on the receiving thread.
>
> It is not exactly the same thing, but it is enough for QEMU's needs.
>
> Paolo
>
>
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] sigaction in windows
2012-05-14 15:51 ` Mulyadi Santosa
@ 2012-05-14 15:55 ` Paolo Bonzini
2012-05-15 13:38 ` Mulyadi Santosa
0 siblings, 1 reply; 5+ messages in thread
From: Paolo Bonzini @ 2012-05-14 15:55 UTC (permalink / raw)
To: Mulyadi Santosa; +Cc: qemu-devel
Il 14/05/2012 17:51, Mulyadi Santosa ha scritto:
> Hi...
>
> On Mon, May 14, 2012 at 3:39 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> 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;
>
> you meant, "the receiving thread", right?
No, in the sending thread. That's why I said it is not exactly the same
thing.
Paolo
>>
>> - call ResumeThread on the receiving thread.
>>
>> It is not exactly the same thing, but it is enough for QEMU's needs.
>>
>> Paolo
>>
>>
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] sigaction in windows
2012-05-14 15:55 ` Paolo Bonzini
@ 2012-05-15 13:38 ` Mulyadi Santosa
0 siblings, 0 replies; 5+ messages in thread
From: Mulyadi Santosa @ 2012-05-15 13:38 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: qemu-devel
Hi....
On Mon, May 14, 2012 at 10:55 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> you meant, "the receiving thread", right?
>
> No, in the sending thread. That's why I said it is not exactly the same
> thing.
>
> Paolo
Interesting...thanks for the clarification...
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-05-15 13:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-14 3:47 [Qemu-devel] sigaction in windows bang bang
2012-05-14 8:39 ` Paolo Bonzini
2012-05-14 15:51 ` Mulyadi Santosa
2012-05-14 15:55 ` Paolo Bonzini
2012-05-15 13:38 ` Mulyadi Santosa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.