From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: C level mutices and condition variables Date: 26 Oct 2002 22:12:25 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <87vg3pot7a.fsf@zagadka.ping.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035663228 11984 80.91.224.249 (26 Oct 2002 20:13:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 26 Oct 2002 20:13:48 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 185XJa-000378-00 for ; Sat, 26 Oct 2002 22:13:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 185XIx-0002xU-00; Sat, 26 Oct 2002 16:13:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 185XIa-0002Yv-00 for guile-devel@gnu.org; Sat, 26 Oct 2002 16:12:44 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 185XIJ-0001gr-00 for guile-devel@gnu.org; Sat, 26 Oct 2002 16:12:43 -0400 Original-Received: from mail.dokom.net ([195.253.8.218]) by monty-python.gnu.org with esmtp (Exim 4.10) id 185XII-0001de-00 for guile-devel@gnu.org; Sat, 26 Oct 2002 16:12:26 -0400 Original-Received: from dialin.speedway42.dip231.dokom.de ([195.138.42.231] helo=zagadka.ping.de ident=qmailr) by mail.dokom.net with smtp (Exim 3.32 #2) id 185XIv-0006PD-00 for guile-devel@gnu.org; Sat, 26 Oct 2002 22:13:05 +0200 Original-Received: (qmail 27367 invoked by uid 1000); 26 Oct 2002 20:12:25 -0000 Original-To: guile-devel@gnu.org Original-Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:1601 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1601 Hi, currently, we support the scm_t_mutex and scm_t_cond types, along with some functions. You can declare a variable of type scm_t_mutex and initialize it with scm_mute_init, for example. This makes it hard to have SCM data in a scm_t_mutex since you have to protect it without the help from the user of the mutex. Also, this is not 'astract' enough when we make thread package support a run-time option (which we should). Dirk did some work in this direction in the dirk-thread-factorization branch. I propose something simpler: Let's just remove C level support for mutex and condition variable objects and tell them to use the Scheme level mutices, which are also available to C. (With deprecation.) Ok? -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel