<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/DISPATCH_SOURCE_TYPE_MEMORYPRESSURE",
  "metadataVersion" : "0.1.0",
  "role" : "Macro",
  "symbol" : {
    "kind" : "Macro",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "c:@macro@DISPATCH_SOURCE_TYPE_MEMORYPRESSURE"
  },
  "title" : "DISPATCH_SOURCE_TYPE_MEMORYPRESSURE"
}
-->

# DISPATCH_SOURCE_TYPE_MEMORYPRESSURE

A type of dispatch source for monitoring memory pressure events.

```
#define DISPATCH_SOURCE_TYPE_MEMORYPRESSURE
```

## Discussion

A dispatch source that monitors the memory pressure of the system. The handle is unused and you should pass 0 for that parameter. The mask is a mask of desired events from `Dispatch Source Memory Pressure Event Flags`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)