<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFRunLoopSourceContext/equal",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@SA@CFRunLoopSourceContext@FI@equal"
  },
  "title" : "equal"
}
-->

# equal

An equality test callback for your program-defined `info` pointer. Can be `NULL`.

```
var equal: ((UnsafeRawPointer?, UnsafeRawPointer?) -> DarwinBoolean)!
```

## Parameters

`info1`

The `info` member of the [`CFRunLoopSourceContext`](/documentation/CoreFoundation/CFRunLoopSourceContext) or [`CFRunLoopSourceContext1`](/documentation/CoreFoundation/CFRunLoopSourceContext1) structure that was used when creating the first run loop source to test.

`info2`

The `info` member of the [`CFRunLoopSourceContext`](/documentation/CoreFoundation/CFRunLoopSourceContext) or [`CFRunLoopSourceContext1`](/documentation/CoreFoundation/CFRunLoopSourceContext1) structure that was used when creating the second run loop source to test.

## Return Value

`true` if `info1` and `info2` should be considered equal; otherwise `false`.

## Discussion

An equality test callback for your program-defined `info` pointer. Can be `NULL`.

---

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)