---
title: equal
framework: corefoundation
role: symbol
role_heading: Instance Property
path: corefoundation/cfrunloopsourcecontext/equal
---

# equal

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

## Declaration

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

## Parameters

- `info1`: The info member of the doc://com.apple.corefoundation/documentation/CoreFoundation/CFRunLoopSourceContext or doc://com.apple.corefoundation/documentation/CoreFoundation/CFRunLoopSourceContext1 structure that was used when creating the first run loop source to test.
- `info2`: The info member of the doc://com.apple.corefoundation/documentation/CoreFoundation/CFRunLoopSourceContext or doc://com.apple.corefoundation/documentation/CoreFoundation/CFRunLoopSourceContext1 structure that was used when creating the second run loop source to test.

## Return Value

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

## Discussion

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

## See Also

### Callbacks

- [cancel](corefoundation/cfrunloopsourcecontext/cancel.md)
- [hash](corefoundation/cfrunloopsourcecontext/hash.md)
- [perform](corefoundation/cfrunloopsourcecontext/perform.md)
- [schedule](corefoundation/cfrunloopsourcecontext/schedule.md)
