From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STxcu-0001Ys-KZ for qemu-devel@nongnu.org; Mon, 14 May 2012 11:56:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1STxco-0002cG-Ey for qemu-devel@nongnu.org; Mon, 14 May 2012 11:56:00 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:55185) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STxco-0002c0-6G for qemu-devel@nongnu.org; Mon, 14 May 2012 11:55:54 -0400 Received: by pbbro12 with SMTP id ro12so8826342pbb.4 for ; Mon, 14 May 2012 08:55:52 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4FB12B00.1080503@redhat.com> Date: Mon, 14 May 2012 17:55:44 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <4FB0C4D0.1050909@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] sigaction in windows List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mulyadi Santosa Cc: qemu-devel@nongnu.org Il 14/05/2012 17:51, Mulyadi Santosa ha scritto: > Hi... > > On Mon, May 14, 2012 at 3:39 PM, Paolo Bonzini 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 >> >> > > >