---
title: DispatchSource.MemoryPressureEvent
framework: dispatch
role: symbol
role_heading: Structure
path: dispatch/dispatchsource/memorypressureevent
---

# DispatchSource.MemoryPressureEvent

Memory pressure events.

## Declaration

```swift
struct MemoryPressureEvent
```

## Topics

### Memory Pressure Event Flags

- [all](dispatch/dispatchsource/memorypressureevent/all.md)
- [normal](dispatch/dispatchsource/memorypressureevent/normal.md)
- [warning](dispatch/dispatchsource/memorypressureevent/warning.md)
- [critical](dispatch/dispatchsource/memorypressureevent/critical.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Creating a Memory Pressure Source

- [makeMemoryPressureSource(eventMask:queue:)](dispatch/dispatchsource/makememorypressuresource(eventmask:queue:).md)
- [DispatchSourceMemoryPressure](dispatch/dispatchsourcememorypressure.md)
