---
title: thread_state
framework: endpointsecurity
role: symbol
role_heading: Instance Property
path: endpointsecurity/es_event_remote_thread_create_t/thread_state
---

# thread_state

The new thread’s state.

## Declaration

```swift
var thread_state: UnsafeMutablePointer<es_thread_state_t>?
```

## Discussion

Discussion When creating a thread with thread_create_running(_:_:_:_:_:), this value contains an es_thread_state_t value. When using thread_create(_:_:), this value is NULL.

## See Also

### Inspecting Event Properties

- [target](endpointsecurity/es_event_remote_thread_create_t/target.md)
- [es_thread_state_t](endpointsecurity/es_thread_state_t.md)
- [reserved](endpointsecurity/es_event_remote_thread_create_t/reserved.md)
