Example #1
0
        public static MutexThread Begin(CancellationToken token)
        {
            var thread = new MutexThread();

            thread.Task = Task.Run(() => thread.Run(token), token);
            return(thread);
        }
Example #2
0
 public MutexLock(MutexThread mutexThread, Mutex mutex)
 {
     _mutexThread = mutexThread;
     _mutex       = mutex;
 }