all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Spencer Baugh <sbaugh@janestreet.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org,  mshinwell@janestreet.com
Subject: Re: Native module callback when Lisp thread exits
Date: Sat, 18 May 2024 09:56:26 -0400	[thread overview]
Message-ID: <ierbk53b4vp.fsf@janestreet.com> (raw)
In-Reply-To: <86msoofg5o.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 17 May 2024 21:26:59 +0300")

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.



  reply	other threads:[~2024-05-18 13:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-17 17:09 Native module callback when Lisp thread exits Spencer Baugh
2024-05-17 18:26 ` Eli Zaretskii
2024-05-18 13:56   ` Spencer Baugh [this message]
2024-05-18 15:49     ` Eli Zaretskii

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ierbk53b4vp.fsf@janestreet.com \
    --to=sbaugh@janestreet.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=mshinwell@janestreet.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.