[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanentl
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails |
Date: |
Tue, 23 Jun 2015 12:23:43 +0100 |
On 23 June 2015 at 11:46, Paolo Bonzini <address@hidden> wrote:
> SuspendThread was pretty much the only way to emulate signals.
> Initially I used SetThreadContext to redirect execution to cpu_signal;
> that was more complicated, but in retrospect it would have avoided the
> problems with memory barriers and with asynchronous SuspendThread. It
> certainly would have saved the AdaCore people a lot of debugging time. :(
>
> For 2.5, however, I wonder if SuspendThread/ResumeThread is needed at
> all now that cpu_exit doesn't have to undo block chaining anymore. Even
> on POSIX platforms the signal might not be necessary anymore.
Yeah, I was wondering that too. All we're really doing is setting
three flag variables, so the suspend/resume or signal is just getting
us atomicity of those flag changes. It might be possible to redesign
things a bit to not require the atomicity part.
-- PMM
- Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails, (continued)
- Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails, Stefan Weil, 2015/06/23
- Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails, Fabien Chouteau, 2015/06/23
- Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails, Ян Завадовский, 2015/06/23
- Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails, Peter Maydell, 2015/06/23
- Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails, Paolo Bonzini, 2015/06/23
- Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails, Daniel P. Berrange, 2015/06/23
- Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails, Paolo Bonzini, 2015/06/23
- Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails, Daniel P. Berrange, 2015/06/23
- Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails, Paolo Bonzini, 2015/06/23
- Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails,
Peter Maydell <=
- Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails, Stefan Weil, 2015/06/23
- Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails, Fabien Chouteau, 2015/06/24
- Re: [Qemu-devel] [PATCH] thread-win32: fix GetThreadContext() permanently fails, Peter Maydell, 2015/06/24