Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Generated using TypeDoc
Upon creation, which should happen early during startup, the sync manager creates/opens and locks a file. All other running instances of the same installation of the app also open the same lock, so we can use it to determine whether any other instance is running. If so, we'll temporarily hold off on performing update tasks until there are no other instances or until a timeout expires, whichever comes first. That way we can avoid updating behind the back of copies that are still running, so we don't force all running instances to restart (see bug 1366808, where an error was added informing the user of the need to restart any running instances that have been updated).