guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thread local storage


From: Ludovic Courtès
Subject: Re: Thread local storage
Date: Wed, 07 Oct 2009 00:07:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Hi Ken,

Ken Raeburn <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]