Hi Ken,

Ken Raeburn <[email protected]> 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