---
title: DISPATCH_BLOCK_DETACHED
framework: dispatch
role: symbol
role_heading: Enumeration Case
path: dispatch/dispatch_block_flags_t/dispatch_block_detached
---

# DISPATCH_BLOCK_DETACHED

Disassociate the work item’s attributes from the current execution context.

## Declaration

```occ
DISPATCH_BLOCK_DETACHED
```

## Discussion

Discussion Indicates that a dispatch block should execute disassociated from current execution context attributes such as QoS class, os_activity_t, and properties of the current IPC request, if any. If invoked directly, the block removes these attributes from the calling thread for the duration of the block body before applying attributes assigned to the block, if any. If submitted to a queue, the block object will be executed with the attributes of the queue, or any attributes specifically assigned to the block object.

## See Also

### Flags

- [DISPATCH_BLOCK_ASSIGN_CURRENT](dispatch/dispatch_block_flags_t/dispatch_block_assign_current.md)
- [DISPATCH_BLOCK_BARRIER](dispatch/dispatch_block_flags_t/dispatch_block_barrier.md)
- [DISPATCH_BLOCK_ENFORCE_QOS_CLASS](dispatch/dispatch_block_flags_t/dispatch_block_enforce_qos_class.md)
- [DISPATCH_BLOCK_INHERIT_QOS_CLASS](dispatch/dispatch_block_flags_t/dispatch_block_inherit_qos_class.md)
- [DISPATCH_BLOCK_NO_QOS_CLASS](dispatch/dispatch_block_flags_t/dispatch_block_no_qos_class.md)
