[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Debugging Emacs with threads
From: |
Eli Zaretskii |
Subject: |
Re: Debugging Emacs with threads |
Date: |
Sun, 11 Dec 2016 20:12:12 +0200 |
> From: Andreas Schwab <address@hidden>
> Cc: address@hidden, address@hidden
> Date: Sun, 11 Dec 2016 19:04:20 +0100
>
> On Dez 11 2016, Eli Zaretskii <address@hidden> wrote:
>
> >> Why isn't current_thread a thread-local variable?
> >
> > I don't know. Is that sufficiently portable for us to use?
>
> If __thread isn't available it can simulated with pthread_getspecific.
Btw, there are several places in thread.c which compare the value of
current_thread with some other value. I guess these will have to be
reviewed if current_thread is going to be in TLS.
Tom, any comments?
Thanks.