From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: why "in_sighandler"? Date: Mon, 21 Aug 2006 09:08:54 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <87psevdhpc.fsf-monnier+emacs@gnu.org> <44E88FCA.5050705@swipnet.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1156118959 9105 80.91.229.2 (21 Aug 2006 00:09:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Aug 2006 00:09:19 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 21 02:09:15 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GExLu-0004cy-Fk for ged-emacs-devel@m.gmane.org; Mon, 21 Aug 2006 02:09:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GExLt-0003je-Uq for ged-emacs-devel@m.gmane.org; Sun, 20 Aug 2006 20:09:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GExLh-0003jZ-U9 for emacs-devel@gnu.org; Sun, 20 Aug 2006 20:09:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GExLg-0003j3-6v for emacs-devel@gnu.org; Sun, 20 Aug 2006 20:09:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GExLg-0003iv-2c for emacs-devel@gnu.org; Sun, 20 Aug 2006 20:09:00 -0400 Original-Received: from [133.82.132.2] (helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GExSw-00059J-73 for emacs-devel@gnu.org; Sun, 20 Aug 2006 20:16:30 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 4761B2CB8; Mon, 21 Aug 2006 09:08:54 +0900 (JST) Original-To: "Jan D." In-Reply-To: <44E88FCA.5050705@swipnet.se> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:58584 Archived-At: >>>>> On Sun, 20 Aug 2006 18:37:30 +0200, "Jan D." said: > I needed a variable that was only set when the signal handler is > running. I've got no response from you to my last message (*1) in the related thread. So I'm not sure if you are for or against my suggestion about undoing `in_sighandler'-related changes and just changing the order of lock/unlock and BLOCK_INPUT/UNBLOCK_INPUT in the previous version of BLOCK_INPUT_ALLOC/UNBLOCK_INPUT_ALLOC as follows. #define BLOCK_INPUT_ALLOC \ do \ { \ if (pthread_self () == main_thread) \ BLOCK_INPUT; \ pthread_mutex_lock (&alloc_mutex); \ } \ while (0) #define UNBLOCK_INPUT_ALLOC \ do \ { \ pthread_mutex_unlock (&alloc_mutex); \ if (pthread_self () == main_thread) \ UNBLOCK_INPUT; \ } \ while (0) (*1) http://lists.gnu.org/archive/html/emacs-pretest-bug/2006-08/msg00161.html YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp