unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: Thread local storage
Date: Wed, 07 Oct 2009 00:07:06 +0200	[thread overview]
Message-ID: <871vlgyy5x.fsf@gnu.org> (raw)
In-Reply-To: 03430FA6-E734-4D0B-9B80-098BB086A01F@raeburn.org

Hi Ken,

Ken Raeburn <raeburn@raeburn.org> writes:

> For the most part I think the wip-tls changes look good.  In the non-
> __thread case, though, you've eliminated the pthread_key_create call,
> making it not work on my Mac.

Oops, thanks for pointing it out.

(I find it surprising that MacOS doesn’t have TLS support.)

> Assuming that __thread variables are by default initialized to 0 (or
> NULL or whatever we specify), we also don't need anything in
> init_thread_key when we have __thread support.

Right.

> I suggest something like the patch below.  I haven't tried it on a
> system *with* the __thread support though.

Thanks, I’ll give it a try.

Ludo’.





  reply	other threads:[~2009-10-06 22:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87hbuf8ddq.fsf@inria.fr>
2009-10-06 17:44 ` Thread local storage Ken Raeburn
2009-10-06 22:07   ` Ludovic Courtès [this message]
2009-10-04 14:03 Ludovic Courtès
2009-10-06  7:32 ` Ludovic Courtès
2009-10-06 20:35 ` Neil Jerram
2009-10-06 22:04   ` Ludovic Courtès
2009-10-07 20:49     ` Neil Jerram
2009-10-07 21:44       ` Ludovic Courtès
2009-10-09 12:44   ` Ludovic Courtès

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=871vlgyy5x.fsf@gnu.org \
    --to=ludo@gnu.org \
    --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).