---
title: dispatch_queue_attr_make_with_autorelease_frequency
framework: dispatch
role: symbol
role_heading: Function
path: dispatch/dispatch_queue_attr_make_with_autorelease_frequency
---

# dispatch_queue_attr_make_with_autorelease_frequency

Returns an attribute that specifies how the dispatch queue manages autorelease pools for the blocks it executes.

## Declaration

```occ
extern dispatch_queue_attr_tdispatch_queue_attr_make_with_autorelease_frequency(dispatch_queue_attr_t attr, dispatch_autorelease_frequency_t frequency);
```

## Parameters

- `attr`: The dispatch queue attributes you want to modify.
- `frequency`: The autorelease behavior attribute to apply to the dispatch queue. For a list of possible values, see doc://com.apple.dispatch/documentation/Dispatch/dispatch_autorelease_frequency_t.

## See Also

### Configuring Queue Execution Parameters

- [dispatch_queue_attr_t](dispatch/dispatch_queue_attr_t.md)
- [dispatch_queue_attr_make_with_qos_class](dispatch/dispatch_queue_attr_make_with_qos_class.md)
- [dispatch_queue_get_qos_class](dispatch/dispatch_queue_get_qos_class.md)
- [dispatch_qos_class_t](dispatch/dispatch_qos_class_t.md)
- [dispatch_queue_attr_make_initially_inactive](dispatch/dispatch_queue_attr_make_initially_inactive.md)
- [dispatch_autorelease_frequency_t](dispatch/dispatch_autorelease_frequency_t.md)
