From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4754 invoked by alias); 17 Nov 2004 07:51:20 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 4721 invoked from network); 17 Nov 2004 07:51:15 -0000 Received: from unknown (HELO voigt.in-berlin.de) (192.109.21.13) by sourceware.org with SMTP; 17 Nov 2004 07:51:15 -0000 Received: from p213.54.255.142.tisdip.tiscali.de ([10.0.0.21]) [213.54.255.142]by voigt.in-berlin.dewith esmtpsa(tls_cipher TLSv1:RC4-MD5:128)(Exim 4.42 #1 (Gentoo Linux 1.4))id 1CUKaw-00075N-Jn; Wed, 17 Nov 2004 08:51:15 +0100 From: Bastian Voigt To: pthreads-win32@sources.redhat.com Subject: Re: calling mutex_lock() twice from one thread Date: Wed, 17 Nov 2004 07:51:00 -0000 User-Agent: KMail/1.7.1 References: <419888D2.3060502@voigt.in-berlin.de> <419AEB9A.1060709@ecosm.com> In-Reply-To: <419AEB9A.1060709@ecosm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411170856.08648.bastian@voigt.in-berlin.de> X-Spam-Score: 0.0 (/) X-SW-Source: 2004/txt/msg00145.txt.bz2 Will Bryant wrote: > Yes, aside from the fact that you want non-recursive locks, semaphores > are the _only_ synchronization primitive that can be used from inside > signal handlers. Note that condition variables most definitely cannot > be signalled from inside a signal handler - that will break - badly - on > most unix platforms. Thank you very much. That really helps.