Back to index

glibc  2.9
td_ta_get_nthreads.c File Reference
#include "thread_dbP.h"

Go to the source code of this file.


td_err_e td_ta_get_nthreads (const td_thragent_t *ta_arg, int *np)

Function Documentation

td_err_e td_ta_get_nthreads ( const td_thragent_t *  ta_arg,
int np 

Definition at line 24 of file td_ta_get_nthreads.c.

  td_thragent_t *const ta = (td_thragent_t *) ta_arg;
  td_err_e err;
  psaddr_t n;

  LOG ("td_ta_get_nthreads");

  /* Test whether the TA parameter is ok.  */
  if (! ta_ok (ta))
    return TD_BADTA;

  /* Access the variable in the inferior that tells us.  */
  err = DB_GET_VALUE (n, ta, __nptl_nthreads, 0);
  if (err == TD_OK)
    *np = (uintptr_t) n;

  return err;

Here is the call graph for this function: