Exemple #1
0
        /// <summary>
        /// Releases the mutex.
        /// </summary>
        public void ReleaseMutex()
        {
            var code = MutexPrimitives.UnlockMutex(handle);

            if (code != ThreadResultCode.Success)
            {
                throw new Exception("Mutex lock release failed with error code '" + code + "'.");
            }
        }