<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "EndpointSecurity",
  "identifier" : "/documentation/EndpointSecurity/es_thread_state_t",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Endpoint Security"
    ],
    "preciseIdentifier" : "c:@SA@es_thread_state_t"
  },
  "title" : "es_thread_state_t"
}
-->

# es_thread_state_t

A description of a thread’s machine-specfiic state.

```
struct es_thread_state_t
```

## Overview

To work with thread state, see the definitions in the include file `mach/thread_status.h` and corresponding machine-dependent headers.

## Topics

### Inspecting Thread State

[`flavor`](/documentation/EndpointSecurity/es_thread_state_t/flavor)

An indication of the representation of the machine-specific thread state.

[`state`](/documentation/EndpointSecurity/es_thread_state_t/state)

The machine-specific thread state.

[`es_token_t`](/documentation/EndpointSecurity/es_token_t)

An arbitrary buffer of data with its size.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)