unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Neil Jerram <neil@ossau.uklinux.net>
Cc: guile-devel@gnu.org
Subject: Re: C level mutices and condition variables
Date: 26 Oct 2002 22:28:33 +0100	[thread overview]
Message-ID: <m3smysga9q.fsf@laruns.ossau.uklinux.net> (raw)
In-Reply-To: <87vg3pot7a.fsf@zagadka.ping.de>

>>>>> "Marius" == Marius Vollmer <mvo@zagadka.ping.de> writes:

    Marius> Hi,
    Marius> currently, we support the scm_t_mutex and scm_t_cond types, along with
    Marius> some functions.  You can declare a variable of type scm_t_mutex and
    Marius> initialize it with scm_mute_init, for example.

    Marius> This makes it hard to have SCM data in a scm_t_mutex since you have to
    Marius> protect it without the help from the user of the mutex.  Also, this is
    Marius> not 'astract' enough when we make thread package support a run-time
    Marius> option (which we should).

    Marius> Dirk did some work in this direction in the dirk-thread-factorization
    Marius> branch.  I propose something simpler:

    Marius> Let's just remove C level support for mutex and condition variable
    Marius> objects and tell them to use the Scheme level mutices, which are also
    Marius> available to C.  (With deprecation.)

    Marius> Ok?

I don't understand, I'm afraid.

- Why would you want "to have SCM data in a scm_t_mutex"? - isn't the
  data that you are protecting access to normally a separate variable
  (or set of variables) from the mutex itself?

- What do you mean by not abstract enough?

- In "tell them to use the Scheme level mutices", who is "them", and
  would it be possible for them to use Scheme mutexes from C code, or
  are you saying that people who need mutexes must code in Scheme?

Regards,
        Neil



_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2002-10-26 21:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-26 20:12 C level mutices and condition variables Marius Vollmer
2002-10-26 21:28 ` Neil Jerram [this message]
2002-10-26 23:33   ` Marius Vollmer
2002-10-27  7:40     ` Neil Jerram
2002-10-27 12:37       ` Marius Vollmer
2002-11-11 22:05 ` Thread interface issues (was Re: C level mutices and condition variables) Mikael Djurfeldt
2002-11-12 22:37   ` GC & threads (was: Thread interface issues) Han-Wen Nienhuys
2002-11-12 23:09   ` Thread interface issues (was Re: C level mutices and condition variables) Neil Jerram
2002-11-22 21:27     ` Marius Vollmer
2002-11-23 20:55       ` Thread interface issues Mikael Djurfeldt
2002-11-24 10:27         ` Marius Vollmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3smysga9q.fsf@laruns.ossau.uklinux.net \
    --to=neil@ossau.uklinux.net \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).