System.Threading.Thread.VolatileWrite C# (CSharp) Метод

VolatileWrite() публичный статический Метод

public static VolatileWrite ( System &address, System value ) : void
address System
value System
Результат void
        public static void VolatileWrite(ref System.IntPtr address, System.IntPtr value)
        {
        }

Same methods

Thread::VolatileWrite ( byte &address, byte value ) : void
Thread::VolatileWrite ( double &address, double value ) : void
Thread::VolatileWrite ( float &address, float value ) : void
Thread::VolatileWrite ( int &address, int value ) : void
Thread::VolatileWrite ( long &address, long value ) : void
Thread::VolatileWrite ( object &address, object value ) : void
Thread::VolatileWrite ( sbyte &address, sbyte value ) : void
Thread::VolatileWrite ( short &address, short value ) : void
Thread::VolatileWrite ( uint &address, uint value ) : void
Thread::VolatileWrite ( ulong &address, ulong value ) : void
Thread::VolatileWrite ( ushort &address, ushort value ) : void

Usage Example

Пример #1
0
 private void ExitExtracted(bool useMemoryBarrier)
 {
     if (useMemoryBarrier)
     {
         Thread.VolatileWrite(ref _isHeld, 0);
         Volatile.Write(ref _ownerThread, null);
     }
     else
     {
         _isHeld      = 0;
         _ownerThread = null;
     }
 }
All Usage Examples Of System.Threading.Thread::VolatileWrite