Function: thread-live-p

thread-live-p is a function defined in thread.c.

Signature

(thread-live-p THREAD)

Documentation

Return t if THREAD is alive, or nil if it has exited.

Probably introduced at or before Emacs version 26.2.

Source Code

// Defined in /usr/src/emacs/src/thread.c
{
  struct thread_state *tstate;

  CHECK_THREAD (thread);
  tstate = XTHREAD (thread);

  return thread_live_p (tstate) ? Qt : Qnil;
}