Back to index

glibc  2.9
td_ta_delete.c File Reference
#include <stdlib.h>
#include "thread_dbP.h"

Go to the source code of this file.


td_err_e td_ta_delete (td_thragent_t *ta)

Function Documentation

td_err_e td_ta_delete ( td_thragent_t *  ta)

Definition at line 27 of file td_ta_delete.c.

  LOG ("td_ta_delete");

  /* Safety check.  Note that the test will also fail for TA == NULL.  */
  if (!ta_ok (ta))
    return TD_BADTA;

  /* Remove the handle from the list.  */
  list_del (&ta->list);

  /* The handle was allocated in `td_ta_new'.  */
  free (ta);

  return TD_OK;

Here is the call graph for this function: