---
title: dispatch_source_merge_data
framework: dispatch
role: symbol
role_heading: Function
path: dispatch/dispatch_source_merge_data
---

# dispatch_source_merge_data

Merges data into a dispatch source and submits its event handler block to its target queue.

## Declaration

```occ
extern void dispatch_source_merge_data(dispatch_source_t source, uintptr_t value);
```

## Parameters

- `source`: This parameter cannot be NULL.
- `value`: The value to coalesce with the pending data using a logical OR or an ADD as specified by the dispatch source type. A value of zero has no effect and does not result in the submission of the event handler block.

## Discussion

Discussion Your application can use this function to indicate that an event has occurred on one of the application-defined dispatch event sources of type DISPATCH_SOURCE_TYPE_DATA_ADD or DISPATCH_SOURCE_TYPE_DATA_OR.

## See Also

### Getting Dispatch Source Attributes

- [dispatch_source_get_data](dispatch/dispatch_source_get_data.md)
- [dispatch_source_get_mask](dispatch/dispatch_source_get_mask.md)
- [dispatch_source_get_handle](dispatch/dispatch_source_get_handle.md)
- [dispatch_source_proc_flags_t](dispatch/dispatch_source_proc_flags_t.md)
- [dispatch_source_vnode_flags_t](dispatch/dispatch_source_vnode_flags_t.md)
- [dispatch_source_mach_recv_flags_t](dispatch/dispatch_source_mach_recv_flags_t.md)
- [dispatch_source_mach_send_flags_t](dispatch/dispatch_source_mach_send_flags_t.md)
- [dispatch_source_memorypressure_flags_t](dispatch/dispatch_source_memorypressure_flags_t.md)
