---
title: allocationThreshold
framework: corevideo
role: symbol
role_heading: Instance Property
path: corevideo/cvmutablepixelbuffer/pool/allocationattributes/allocationthreshold
---

# allocationThreshold

A new pixel buffer will not be allocated if the pool already has this many or more pixel buffers allocated. This does not prevent already-allocated buffers from being recycled. If this causes allocation failure, then CVMutablePixelBuffer/Pool/mutablePixelBuffer(allocationThreshold:) throws wouldExceedAllocationThreshold.

## Declaration

```swift
var allocationThreshold: Int?
```
