Contents

notify_set_state(_:_:)

Declaration

func notify_set_state(_ token: Int32, _ state64: UInt64) -> UInt32

Parameters

  • token:

    (Input) notification token

  • state64:

    (Input) 64-bit unsigned integer value

Return Value

Returns status.

Discussion

Set or get a state value associated with a notification token. Each key in the notification namespace has an associated integer value available for use by clients as for application-specific purposes. A common usage is to allow two processes or threads to synchronize their activities. For example, a server process may need send a notification when a resource becomes available. A client process can register for the notification, but when it starts up it will not know whether the resource is available. The server can set the state value, and the client can check the value at startup time to synchronize with the server.

Set the 64-bit integer state value.

See Also

Miscellaneous