---
name: "SLOG_TTAB_AddThreadInfo"
section: "3"
platform: "linux"
package: "mpi-doc"
version: "1.2.5.3-5"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/SLOG_TTAB_AddThreadInfo"
---

# SLOG\_TTAB\_AddThreadInfo(3)

Add thread info to the SLOG Thread Table.

## NAME

SLOG\_TTAB\_AddThreadInfo -  Add thread info to the SLOG Thread Table.

## SYNOPSIS

```
int SLOG_TTAB_AddThreadInfo(       SLOG_STREAM       *slog,
                             const SLOG_nodeID_t      in_node_id,
                             const SLOG_threadID_t    in_thread_id,
                             const SLOG_OSprocessID_t in_OSprocess_id,
                             const SLOG_OSthreadID_t  in_OSthread_id,
                             const SLOG_appID_t       in_app_id )
```

## MODIFIED INPUT VARIABLES

- **slog**

  \- pointer to the SLOG\_STREAM where SLOG Thread Table is located.

## UNMODIFIED INPUT VARIABLES

- **in\_node\_id**

  \- node ID.

- **in\_thread\_id**

  \- logic thread ID.

- **in\_OSprocess\_id**

  \- OS process ID.

- **in\_OSthread\_id**

  \- OS thread ID.

- **in\_app\_id**

  \- application ID.

## MODIFIED OUTPUT VARIABLES

- **returned value**

  \- integer return status.

## INCLUDE FILE NEEDED

slog\_ttable.h

## NOTES ON SLOG RETURN STATUS CODE

There are 5 allowed SLOG returned status codes.  They include SLOG\_SUCCESS, SLOG\_FAIL and SLOG\_EOF.  Their actual values are defined in slog.h

SLOG\_SUCCESS is returned when no error is encountered.

SLOG\_FAIL is returned when error is encounted.

SLOG\_EOF is returned when End of file is encounted.

There are also SLOG\_TRUE and SLOG\_FALSE which are sued as boolean values, in particular they are used in boolean functions which are usually named as IsXXXXX(), AreXXXXX() and HasXXXXX().\

## LOCATION
