/// <summary>
        /// Releases the specified job lock.
        /// </summary>
        /// <param name="jobLock">The job lock.</param>
        public override void Release(JobLock jobLock)
        {
            lock (_myLock)
            {
                if (jobLock.LockAcquired)
                    _locks.Remove(jobLock.LockName);

                jobLock.SetReleased();
            }
        }
예제 #2
0
        /// <summary>
        /// Releases the specified job lock.
        /// </summary>
        /// <param name="jobLock">The job lock.</param>
        public override void Release(JobLock jobLock)
        {
            lock (_myLock)
            {
                if (jobLock.LockAcquired)
                {
                    _locks.Remove(jobLock.LockName);
                }

                jobLock.SetReleased();
            }
        }
예제 #3
0
 /// <summary>
 /// Releases the specified job lock.
 /// </summary>
 /// <param name="jobLock">The job lock.</param>
 public abstract void Release(JobLock jobLock);