Files
Quasar/Client/Core/Helper/MutexHelper.cs
T
MaxXor fd877a13e5 Many Client improvements
- Improved Client Installation, Update and Uninstallation
- Improved Registry Access
- Split SystemCore class
2015-08-24 19:34:38 +02:00

23 lines
478 B
C#

using System.Threading;
namespace xClient.Core.Helper
{
public static class MutexHelper
{
private static Mutex _appMutex;
public static bool CreateMutex(string name)
{
bool createdNew;
_appMutex = new Mutex(false, name, out createdNew);
return createdNew;
}
public static void CloseMutex()
{
if (_appMutex != null)
_appMutex.Close();
}
}
}