---
title: DispatchSourceMemoryPressure
framework: dispatch
role: symbol
role_heading: Protocol
path: dispatch/dispatchsourcememorypressure
---

# DispatchSourceMemoryPressure

A dispatch source that monitors the system for changes in the memory pressure condition.

## Declaration

```swift
protocol DispatchSourceMemoryPressure : DispatchSourceProtocol, Sendable
```

## Overview

Overview You do not adopt this protocol in your objects. Instead, use the makeMemoryPressureSource(eventMask:queue:) method to create an object that adopts this protocol.

## Topics

### Getting the Event Data

- [data](dispatch/dispatchsourcememorypressure/data.md)
- [mask](dispatch/dispatchsourcememorypressure/mask.md)

## Relationships

### Inherits From

- [DispatchSourceProtocol](dispatch/dispatchsourceprotocol.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

### Conforming Types

- [DispatchSource](dispatch/dispatchsource.md)

## See Also

### Creating a Memory Pressure Source

- [makeMemoryPressureSource(eventMask:queue:)](dispatch/dispatchsource/makememorypressuresource(eventmask:queue:).md)
- [DispatchSource.MemoryPressureEvent](dispatch/dispatchsource/memorypressureevent.md)
