The Synchronization interface manages application-level flags that let users know when processes are in use.

For example, your code could create a flag named update-running to ensure that a new baseline update does not start while another update is already in progress.

Typical usage is as follows:

if (setFlag(MY_FLAG_ID) == true)
	[perform action, such as a baseline update]
	removeFlag(MY_FLAG_ID)
else
	[signal error such as "an update is already in progress"]


Copyright © Legal Notices