all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Gemini Lasswell <gazally@runbox.com>
Cc: emacs-devel@gnu.org
Subject: Re: list-threads
Date: Thu, 02 Aug 2018 16:53:19 +0300	[thread overview]
Message-ID: <83o9ekvprk.fsf@gnu.org> (raw)
In-Reply-To: <87wot9onul.fsf@runbox.com> (message from Gemini Lasswell on Wed,  01 Aug 2018 13:04:18 -0700)

> From: Gemini Lasswell <gazally@runbox.com>
> Cc: emacs-devel@gnu.org
> Date: Wed, 01 Aug 2018 13:04:18 -0700
> 
> If the thread at point is not the current thread, then I'll call the new
> primitive that I'm working on, maybe to be called
> backtrace--get-frames-from-thread, pass it the thread as an argument,
> and it will cons up a list of backtrace frames using that thread's
> specpdl stack, which I can use to fill my backtrace buffer.

I'm saying that this will always show a thread that is blocked, either
on some mutex/condvar, or waiting for the global lock to be released.
You will never be able to see the backtrace of another running thread,
because the only thread that is running is the one which takes the
backtrace snapshot.

That question was response to what you said here:

> If a thread is actively working the backtrace will just be a
> snapshot of where it was when you asked for the backtrace.

I'm saying that this is impossible: any thread but the current one is
not "actively working".



  reply	other threads:[~2018-08-02 13:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-29  1:11 list-threads Gemini Lasswell
2018-07-29  7:56 ` list-threads Michael Albinus
2018-07-29  8:37   ` list-threads Michael Albinus
2018-07-29 14:31   ` list-threads Gemini Lasswell
2018-07-29 17:31     ` list-threads Eli Zaretskii
2018-07-30 13:27       ` list-threads Gemini Lasswell
2018-07-30 17:21     ` list-threads Stefan Monnier
2018-07-30 14:59 ` list-threads Eli Zaretskii
2018-08-01 16:03   ` list-threads Gemini Lasswell
2018-08-01 16:37     ` list-threads Eli Zaretskii
2018-08-01 20:04       ` list-threads Gemini Lasswell
2018-08-02 13:53         ` Eli Zaretskii [this message]
2018-08-02 14:51           ` list-threads Gemini Lasswell
2018-08-27 17:38 ` list-threads Gemini Lasswell
2018-08-27 18:48   ` list-threads Eli Zaretskii
2018-09-09 15:44     ` list-threads Gemini Lasswell
2018-09-09 16:01       ` list-threads 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=83o9ekvprk.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=gazally@runbox.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.