---
title: state
framework: endpointsecurity
role: symbol
role_heading: Instance Property
path: endpointsecurity/es_thread_state_t/state
---

# state

The machine-specific thread state.

## Declaration

```swift
var state: es_token_t
```

## Discussion

Discussion This equivalent to thread_state_t in Mach APIs. note: The size subfield of the state field is in bytes, not natural_t units.

## See Also

### Inspecting Thread State

- [flavor](endpointsecurity/es_thread_state_t/flavor.md)
- [es_token_t](endpointsecurity/es_token_t.md)
