-
-
Notifications
You must be signed in to change notification settings - Fork 5
MachineLevelGuardian
Iuga Alexandru edited this page Jan 6, 2018
·
3 revisions
This class ensures that an instance of itself with the same name can not be created on different processes on same machine.
It is useful to ensure that a single instance of the application is running on the current machine.
MachineLevelGuardian guardian = new MachineLevelGuardian("MyApp"); // Throws if cannot instantiate.
For a complete example please see the demo application.