---
title: "notify_check(_:_:)"
framework: Darwin Notify
role: symbol
role_heading: Function
path: "darwinnotify/notify_check(_:_:)"
---

# notify_check(_:_:)

## Declaration

```swift
func notify_check(_ token: Int32, _ check: UnsafeMutablePointer<Int32>!) -> UInt32
```

## Parameters

- `token`: (Input) notification token
- `check`: (Output) true/false indication

## Return Value

Return Value Returns status.

## Discussion

Discussion Check if any notifications have been posted. Output parameter check is set to 0 for false, 1 for true. Returns status. check is set to true the first time notify_check is called for a token. Subsequent calls set check to true when notifications have been posted for the name associated with the notification token. This routine is independent of notify_post(). That is, check will be true if an application calls notify_post() for a name and then calls notify_check() for a token associated with that name.

## See Also

### Miscellaneous

- [notify_cancel(_:)](darwinnotify/notify_cancel(_:).md)
- [notify_get_state(_:_:)](darwinnotify/notify_get_state(_:_:).md)
- [notify_post(_:)](darwinnotify/notify_post(_:).md)
- [notify_register_check(_:_:)](darwinnotify/notify_register_check(_:_:).md)
- [notify_register_dispatch(_:_:_:_:)](darwinnotify/notify_register_dispatch(_:_:_:_:).md)
- [notify_register_mach_port(_:_:_:_:)](darwinnotify/notify_register_mach_port(_:_:_:_:).md)
- [notify_register_signal(_:_:_:)](darwinnotify/notify_register_signal(_:_:_:).md)
- [notify_resume(_:)](darwinnotify/notify_resume(_:).md)
- [notify_set_state(_:_:)](darwinnotify/notify_set_state(_:_:).md)
- [notify_suspend(_:)](darwinnotify/notify_suspend(_:).md)
