unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Marius Vollmer <mvo@zagadka.de>
Cc: guile-user@gnu.org
Subject: Re: Guile + pthreads + reentrancy?
Date: Sun, 21 Mar 2004 00:02:39 +0100	[thread overview]
Message-ID: <874qsjnmuo.fsf@zagadka.ping.de> (raw)
In-Reply-To: <16453.9444.628161.289892@gargle.gargle.HOWL> (bindej@rpi.edu's message of "Tue, 2 Mar 2004 19:20:52 -0500")

bindej@rpi.edu writes:

> I'm now converting my code to use scm_spawn_thread instead of
> pthread_create.  This is not a problem, but there doesn't seem to be
> any public interface to get a scm_t_thread out of the SCM object.

This shouldn't be necessary, scm_t_thread is 'internal'.

> This is a serious problem because even functions such as
> scm_thread_join take scm_t_thread arguments, and are thus unusable
> outside of Guile.

Use scm_join_thread, which takes a SCM thread object.

The docs need some work, probably...

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405


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


  parent reply	other threads:[~2004-03-20 23:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-23 23:22 Guile + pthreads + reentrancy? bindej
2004-02-24 15:02 ` Mikael Djurfeldt
2004-02-24 15:44   ` Mikael Djurfeldt
2004-02-24 22:58     ` bindej
2004-03-03  0:20     ` bindej
2004-03-03 16:24       ` Mikael Djurfeldt
2004-03-03 17:35         ` bindej
2004-03-03 16:54       ` Mikael Djurfeldt
2004-03-03 17:38         ` bindej
2004-03-20 23:02       ` Marius Vollmer [this message]
2004-02-24 21:19   ` bindej
2004-02-24 21:57     ` Mikael Djurfeldt
2004-02-24 23:07     ` Thien-Thi Nguyen
2004-02-25  3:06       ` Mikael Djurfeldt
2004-02-25 12:54         ` Thien-Thi Nguyen
2004-02-24 22:09 ` Mikael Djurfeldt

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=874qsjnmuo.fsf@zagadka.ping.de \
    --to=mvo@zagadka.de \
    --cc=guile-user@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).