---
name: "TSThreadSelf"
section: "3ts"
platform: "linux"
package: "trafficserver-dev"
version: "9.2.5+ds-0+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/TSThreadSelf"
---

# TSThreadSelf(3ts)

TSThreadSelf API function

## NAME

TSThreadSelf - TSThreadSelf API function

## SYNOPSIS

```
#include <ts/ts.h>
```

- ***TSThread* TSThreadSelf(void)**

  ## DESCRIPTION

Return an instance of *TSThread* that identifies the current thread. This must be called from within a Traffic Server create thread context. That is any thread created by the Traffic Server core or via the Traffic Server API.

## COPYRIGHT

2026, dev@trafficserver.apache.org
