コード例 #1
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();
            }
        }
コード例 #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);