---
title: DISPATCH_BLOCK_ENFORCE_QOS_CLASS
framework: dispatch
role: symbol
role_heading: Enumeration Case
path: dispatch/dispatch_block_flags_t/dispatch_block_enforce_qos_class
---

# DISPATCH_BLOCK_ENFORCE_QOS_CLASS

Prefer the quality-of-service class associated with the block.

## Declaration

```occ
DISPATCH_BLOCK_ENFORCE_QOS_CLASS
```

## Discussion

Discussion Indicates that execution of a dispatch block submitted to a queue should prefer the QoS class assigned to the block at the time of submission over the QoS class assigned to the queue, as long as doing so will not result in a lower QoS class. This flag is the default when a dispatch block is submitted to a queue for synchronous execution or when the dispatch block is invoked directly.

## 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_DETACHED](dispatch/dispatch_block_flags_t/dispatch_block_detached.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)
