Пример #1
0
        public bool TryAcquire()
        {
            Thread thread   = Thread.CurrentThread;
            int    threadId = (thread == null)?InitialThreadId:thread.GetThreadId();

            return(TryAcquireInternal(thread, threadId));
        }
Пример #2
0
        public void Acquire()
        {
            Thread thread   = Thread.CurrentThread;
            int    threadId = (thread == null)?InitialThreadId:thread.GetThreadId();

            AcquireInternal(thread, threadId);
        }
Пример #3
0
        public void Release(Thread thread)
        {
            int threadId = (thread == null)?InitialThreadId:thread.GetThreadId();

            // Release spinlock
            ReleaseInternal(thread, threadId);
        }
Пример #4
0
        public void Release()
        {
            Thread thread = Thread.CurrentThread;

            // Release spinlock
            ReleaseInternal(thread, thread.GetThreadId());
        }
Пример #5
0
        public void Release()
        {
            Thread thread   = Thread.CurrentThread;
            int    threadId = (thread == null)?InitialThreadId:
                              thread.GetThreadId();

            // Release spinlock
            ReleaseInternal(thread, threadId);
        }
Пример #6
0
        public bool IsHeldBy(Thread thread)
        {
            int threadId = (thread == null)?InitialThreadId:thread.GetThreadId();

            return(baseLock.IsHeldBy(threadId + 1));
        }
Пример #7
0
        public bool TryAcquire(Thread thread)
        {
            int threadId = (thread == null)?InitialThreadId:thread.GetThreadId();

            return(TryAcquireInternal(thread, thread.GetThreadId()));
        }
Пример #8
0
        public void Acquire(Thread thread)
        {
            int threadId = (thread == null)?InitialThreadId:thread.GetThreadId();

            AcquireInternal(thread, threadId);
        }
Пример #9
0
 public void Release(Thread thread)
 {
     // Release spinlock
     ReleaseInternal(thread, thread.GetThreadId());
 }
Пример #10
0
 public void Acquire(Thread thread)
 {
     AcquireInternal(thread, thread.GetThreadId());
 }
Пример #11
0
        public void Acquire()
        {
            Thread thread = Thread.CurrentThread;

            AcquireInternal(thread, thread.GetThreadId());
        }
Пример #12
0
 public bool IsHeldBy(Thread thread)
 {
     return(baseLock.IsHeldBy(thread.GetThreadId() + 1));
 }
Пример #13
0
        public bool TryAcquire(Thread thread)
        {
            int threadId = thread.GetThreadId();

            return(TryAcquireInternal(thread, thread.GetThreadId()));
        }
Пример #14
0
        public bool TryAcquire()
        {
            Thread thread = Thread.CurrentThread;

            return(TryAcquireInternal(thread, thread.GetThreadId()));
        }