From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Tuexen Newsgroups: gmane.lisp.guile.devel Subject: Re: scm_mutex_lock and scm_mutex_unlock Date: Mon, 24 Oct 2005 14:45:48 +0200 Message-ID: References: <87fyqss9h1.fsf@uni-dortmund.de> <0670f7f98de893c735f61c3d27eb60c9@lurchi.franken.de> <877jc4rnyf.fsf@uni-dortmund.de> <27b846bf36ef865fd296f6fca17decd5@lurchi.franken.de> <873bmsrl49.fsf@zagadka.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1130160584 15161 80.91.229.2 (24 Oct 2005 13:29:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2005 13:29:44 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Oct 24 15:29:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EU2MP-0001QJ-7u for guile-devel@m.gmane.org; Mon, 24 Oct 2005 15:27:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EU2MO-0004bR-Mv for guile-devel@m.gmane.org; Mon, 24 Oct 2005 09:27:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EU1j6-0006pU-Lo for guile-devel@gnu.org; Mon, 24 Oct 2005 08:46:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EU1j3-0006oV-FG for guile-devel@gnu.org; Mon, 24 Oct 2005 08:46:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EU1j3-0006oR-Aj for guile-devel@gnu.org; Mon, 24 Oct 2005 08:46:53 -0400 Original-Received: from [193.175.24.27] (helo=ilsa.franken.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EU1j3-00023E-33 for guile-devel@gnu.org; Mon, 24 Oct 2005 08:46:53 -0400 Original-Received: from [194.95.73.130] (unknown [194.95.73.130]) by ilsa.franken.de (Postfix) with ESMTP id C500E245C5; Mon, 24 Oct 2005 14:46:50 +0200 (CEST) (KNF account authenticated via SMTP-AUTH) In-Reply-To: <873bmsrl49.fsf@zagadka.de> Original-To: Marius Vollmer X-Mailer: Apple Mail (2.623) 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:5355 Archived-At: Hallo, I tried the old version with --without-threads and it worked. How can I try the new version? the guile-core-unstable.tar.gz is still the old version... Best regards Michael On Oct 23, 2005, at 23:15 Uhr, Marius Vollmer wrote: > 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