From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: scm_mutex_lock and scm_mutex_unlock Date: Mon, 24 Oct 2005 00:15:02 +0300 Message-ID: <873bmsrl49.fsf@zagadka.de> References: <87fyqss9h1.fsf@uni-dortmund.de> <0670f7f98de893c735f61c3d27eb60c9@lurchi.franken.de> <877jc4rnyf.fsf@uni-dortmund.de> <27b846bf36ef865fd296f6fca17decd5@lurchi.franken.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130102245 32289 80.91.229.2 (23 Oct 2005 21:17:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Oct 2005 21:17:25 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Oct 23 23:17:22 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ETnCT-0007Tr-JJ for guile-devel@m.gmane.org; Sun, 23 Oct 2005 23:16:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETnCT-0007Gg-0K for guile-devel@m.gmane.org; Sun, 23 Oct 2005 17:16:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ETnBM-0006nK-RE for guile-devel@gnu.org; Sun, 23 Oct 2005 17:15:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ETnBJ-0006mg-NM for guile-devel@gnu.org; Sun, 23 Oct 2005 17:15:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETnBI-0006mP-HS for guile-devel@gnu.org; Sun, 23 Oct 2005 17:15:04 -0400 Original-Received: from [213.243.153.36] (helo=smtp3.pp.htv.fi) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ETnBH-0004Fk-Ua for guile-devel@gnu.org; Sun, 23 Oct 2005 17:15:04 -0400 Original-Received: from zagadka.ping.de (cs181072157.pp.htv.fi [82.181.72.157]) by smtp3.pp.htv.fi (Postfix) with SMTP id 6E1CE27ACCE for ; Mon, 24 Oct 2005 00:15:02 +0300 (EEST) Original-Received: (qmail 6318 invoked by uid 1000); 23 Oct 2005 21:15:02 -0000 Original-To: Michael Tuexen In-Reply-To: <27b846bf36ef865fd296f6fca17decd5@lurchi.franken.de> (Michael Tuexen's message of "Sun, 23 Oct 2005 22:53:57 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5347 Archived-At: Michael Tuexen writes: >> I guess the most portable way to get recursive mutexes is to use >> pthread_mutex_init together with pthread_mutexattr_settype with >> PTHREAD_MUTEX_RECURSIVE, which is defined in UNIX98. > > That sounds good. PTHREAD_MUTEX_RECURSIVE is defined on my system. Ok. >> I will make this change and let you know when it is done. I have committed it, please try. 2005-10-23 Marius Vollmer PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP is not portable enough. * null-threads.h, pthread-threads.h (SCM_I_PTHREAD_RECURSIVE_MUTEX_INITIALIZER): Removed. (scm_i_pthread_mutexattr_recursive): New. * threads.c (scm_i_pthread_mutexattr_recursive): Declare. (scm_i_critical_section_mutex): Do not initialize statically. (scm_threads_prehistory): Initialize scm_i_pthread_mutexattr_recursive and scm_i_critical_section_mutex here. * eval.c (source_mutex): Do not initialiaze statically. (scm_init_eval): Do it here, using scm_i_pthread_mutexattr_recursive. >> In the mean time, could you try to configure with --without-threads? > > Done. Same result. Line 2658 of eval.c is not ifdefed, I think. So it > is always compiled in. Hmm, --without-threads should make Guile use null-threads.h instead of pthread-threads.h. So there don't need to be any ifdefs in eval.c itself. It is sometimes tricky to get configuration changes to really take effect. To make really sure, you should probably untar the sources once again into a new directory and build there from scratch. -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel