public static Mutex GetNamedMutex(
bool perUser
)
Public Shared Function GetNamedMutex (
perUser As Boolean
) As Mutex
public:
static Mutex^ GetNamedMutex(
bool perUser
)
Gemstone.Threading.InterprocessLock.GetNamedMutex = function(perUser);
This function uses a hash of the assembly's GUID when creating the Mutex, if it is available. If it is not available, it uses a hash of the simple name of the assembly. Although the name is hashed to help guarantee uniqueness, it is still entirely possible that another application may use that name with the same hashing algorithm to generate its Mutex name. Therefore, it is best to ensure that the GuidAttribute is defined in the AssemblyInfo of your application.
UnauthorizedAccessException | The named mutex exists, but the user does not have the minimum needed security access rights to use it. |