X-Recipient: archive-cygwin@delorie.com X-SWARE-Spam-Status: No, hits=1.6 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Mon, 12 Jul 2010 19:08:35 -0500 Message-ID: Subject: Re: pthread_mutex_lock doesn't interrupt From: James Cotton To: cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com Sorry, I don't have access to the actual POSIX standard, but my interpretation is based on man pages: https://computing.llnl.gov/tutorials/pthreads/man/pthread_mutex_lock.txt And certainly nowhere have I see "pthread_mutex_lock blocks signals". The signal we are using is SIGUSR1. I don't see why the signal would be deferred since there are no signals being blocked. Possibly the first signal gets caught and another one comes while in the signal handler (where usual that signal should then get blocked) and is disrupting the processing. James >On 12 July 2010 17:56, James Cotton wrote: >> Hello, I've been trying to get the FreeRTOS Posix simulator to run on >> Cygwin and have run into a few bugs in the signal handling/pthread >> libraries and have isolated test cases >> >> I believe when pthread_mutex_lock receives an interrupt it should run >> it then resume trying to get a lock > >Have you got chapter and verse from the POSIX standard on that? By >'interrupt' do you mean SIGINT or any signal? Is it possible that the >signal is just being deferred and then subsumed by later signals? > >Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple