[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Native module callback when Lisp thread exits
From: |
Eli Zaretskii |
Subject: |
Re: Native module callback when Lisp thread exits |
Date: |
Sat, 18 May 2024 18:49:13 +0300 |
> From: Spencer Baugh <sbaugh@janestreet.com>
> Cc: emacs-devel@gnu.org, mshinwell@janestreet.com
> Date: Sat, 18 May 2024 09:56:26 -0400
>
> Eli Zaretskii <eliz@gnu.org> writes:
> > I don't understand why you need something module-specific. Shouldn't
> > a thread-exit-hook be enough? We could easily add that if that helps.
>
> Yes, that would be enough.
>
> Although I'm now realizing that this could be done in my native module
> by passing a destructor to pthread_key_create, so maybe I don't need
> anything in Emacs after all.
If you don't care about portability to systems that don't use pthreads
for implementing the Lisp threads, then I guess you can do that as
well.