Thread.VolatileWrite Yöntem
Tanım
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer.
Aşırı Yüklemeler
VolatileWrite(UIntPtr, UIntPtr) |
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer. |
VolatileWrite(UInt64, UInt64) |
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer. |
VolatileWrite(UInt32, UInt32) |
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer. |
VolatileWrite(UInt16, UInt16) |
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer. |
VolatileWrite(Single, Single) |
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer. |
VolatileWrite(SByte, SByte) |
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer. |
VolatileWrite(Object, Object) |
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer. |
VolatileWrite(IntPtr, IntPtr) |
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer. |
VolatileWrite(Int16, Int16) |
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer. |
VolatileWrite(Int32, Int32) |
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer. |
VolatileWrite(Double, Double) |
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer. |
VolatileWrite(Byte, Byte) |
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer. |
VolatileWrite(Int64, Int64) |
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer. |
VolatileWrite(UIntPtr, UIntPtr)
Önemli
Bu API, CLS uyumlu değildir.
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer.
public:
static void VolatileWrite(UIntPtr % address, UIntPtr value);
public static void VolatileWrite (ref UIntPtr address, UIntPtr value);
[System.CLSCompliant(false)]
public static void VolatileWrite (ref UIntPtr address, UIntPtr value);
static member VolatileWrite : unativeint * unativeint -> unit
[<System.CLSCompliant(false)>]
static member VolatileWrite : unativeint * unativeint -> unit
Public Shared Sub VolatileWrite (ByRef address As UIntPtr, value As UIntPtr)
Parametreler
- address
- UIntPtr
Değerin yazılacağı alan.The field to which the value is to be written.
- value
- UIntPtr
Yazılacak değer.The value to be written.
- Öznitelikler
Açıklamalar
VolatileRead ve VolatileWrite özel eşitleme durumları içindir.VolatileRead and VolatileWrite are for special cases of synchronization. Normal koşullarda, C# lock
deyimleri, Visual Basic SyncLock
deyimleri ve Monitor sınıfı daha kolay alternatifler sağlar.Under normal circumstances, the C# lock
statement, the Visual Basic SyncLock
statement, and the Monitor class provide easier alternatives.
Çok işlemcili bir sistemde, VolatileWrite bir bellek konumuna yazılan değerin hemen tüm işlemcilere görünür olmasını sağlar.On a multiprocessor system, VolatileWrite ensures that a value written to a memory location is immediately visible to all processors. Bu işlem, işlemci önbelleklerinin temizlenmesini gerektirebilir.This might require flushing processor caches.
Tek işlemcili bir sistemde bile, VolatileRead VolatileWrite bir değerin önbelleğe alınıp yazılmamasını sağlayın (örneğin, bir işlemci kaydındaki).Even on a uniprocessor system, VolatileRead and VolatileWrite ensure that a value is read or written to memory, and not cached (for example, in a processor register). Bu nedenle, başka bir iş parçacığı veya donanımla güncelleştirilebilen bir alana erişimi eşleştirmek için bunları kullanabilirsiniz.Thus, you can use them to synchronize access to a field that can be updated by another thread, or by hardware.
Bu yöntemin çağrılması yalnızca tek bir bellek erişimini etkiler.Calling this method affects only a single memory access. Bir alana yönelik etkili eşitleme sağlamak için alana yapılan tüm erişimin veya kullanması gerekir VolatileRead VolatileWrite .To provide effective synchronization for a field, all access to the field must use VolatileRead or VolatileWrite.
Not
C# ' de, volatile
bir alanda değiştiricinin kullanılması, bu alana yapılan tüm erişimin veya kullanmasını garanti eder VolatileRead VolatileWrite .In C#, using the volatile
modifier on a field guarantees that all access to that field uses VolatileRead or VolatileWrite.
Şunlara uygulanır
VolatileWrite(UInt64, UInt64)
Önemli
Bu API, CLS uyumlu değildir.
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer.
public:
static void VolatileWrite(System::UInt64 % address, System::UInt64 value);
public static void VolatileWrite (ref ulong address, ulong value);
[System.CLSCompliant(false)]
public static void VolatileWrite (ref ulong address, ulong value);
static member VolatileWrite : uint64 * uint64 -> unit
[<System.CLSCompliant(false)>]
static member VolatileWrite : uint64 * uint64 -> unit
Public Shared Sub VolatileWrite (ByRef address As ULong, value As ULong)
Parametreler
- address
- UInt64
Değerin yazılacağı alan.The field to which the value is to be written.
- value
- UInt64
Yazılacak değer.The value to be written.
- Öznitelikler
Açıklamalar
VolatileRead ve VolatileWrite özel eşitleme durumları içindir.VolatileRead and VolatileWrite are for special cases of synchronization. Normal koşullarda, C# lock
deyimleri, Visual Basic SyncLock
deyimleri ve Monitor sınıfı daha kolay alternatifler sağlar.Under normal circumstances, the C# lock
statement, the Visual Basic SyncLock
statement, and the Monitor class provide easier alternatives.
Çok işlemcili bir sistemde, VolatileWrite bir bellek konumuna yazılan değerin hemen tüm işlemcilere görünür olmasını sağlar.On a multiprocessor system, VolatileWrite ensures that a value written to a memory location is immediately visible to all processors. Bu işlem, işlemci önbelleklerinin temizlenmesini gerektirebilir.This might require flushing processor caches.
Tek işlemcili bir sistemde bile, VolatileRead VolatileWrite bir değerin önbelleğe alınıp yazılmamasını sağlayın (örneğin, bir işlemci kaydındaki).Even on a uniprocessor system, VolatileRead and VolatileWrite ensure that a value is read or written to memory, and not cached (for example, in a processor register). Bu nedenle, başka bir iş parçacığı veya donanımla güncelleştirilebilen bir alana erişimi eşleştirmek için bunları kullanabilirsiniz.Thus, you can use them to synchronize access to a field that can be updated by another thread, or by hardware.
Bu yöntemin çağrılması yalnızca tek bir bellek erişimini etkiler.Calling this method affects only a single memory access. Bir alana yönelik etkili eşitleme sağlamak için alana yapılan tüm erişimin veya kullanması gerekir VolatileRead VolatileWrite .To provide effective synchronization for a field, all access to the field must use VolatileRead or VolatileWrite.
Not
C# ' de, volatile
bir alanda değiştiricinin kullanılması, bu alana yapılan tüm erişimin veya kullanmasını garanti eder VolatileRead VolatileWrite .In C#, using the volatile
modifier on a field guarantees that all access to that field uses VolatileRead or VolatileWrite.
Şunlara uygulanır
VolatileWrite(UInt32, UInt32)
Önemli
Bu API, CLS uyumlu değildir.
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer.
public:
static void VolatileWrite(System::UInt32 % address, System::UInt32 value);
public static void VolatileWrite (ref uint address, uint value);
[System.CLSCompliant(false)]
public static void VolatileWrite (ref uint address, uint value);
static member VolatileWrite : uint32 * uint32 -> unit
[<System.CLSCompliant(false)>]
static member VolatileWrite : uint32 * uint32 -> unit
Public Shared Sub VolatileWrite (ByRef address As UInteger, value As UInteger)
Parametreler
- address
- UInt32
Değerin yazılacağı alan.The field to which the value is to be written.
- value
- UInt32
Yazılacak değer.The value to be written.
- Öznitelikler
Açıklamalar
VolatileRead ve VolatileWrite özel eşitleme durumları içindir.VolatileRead and VolatileWrite are for special cases of synchronization. Normal koşullarda, C# lock
deyimleri, Visual Basic SyncLock
deyimleri ve Monitor sınıfı daha kolay alternatifler sağlar.Under normal circumstances, the C# lock
statement, the Visual Basic SyncLock
statement, and the Monitor class provide easier alternatives.
Çok işlemcili bir sistemde, VolatileWrite bir bellek konumuna yazılan değerin hemen tüm işlemcilere görünür olmasını sağlar.On a multiprocessor system, VolatileWrite ensures that a value written to a memory location is immediately visible to all processors. Bu işlem, işlemci önbelleklerinin temizlenmesini gerektirebilir.This might require flushing processor caches.
Tek işlemcili bir sistemde bile, VolatileRead VolatileWrite bir değerin önbelleğe alınıp yazılmamasını sağlayın (örneğin, bir işlemci kaydındaki).Even on a uniprocessor system, VolatileRead and VolatileWrite ensure that a value is read or written to memory, and not cached (for example, in a processor register). Bu nedenle, başka bir iş parçacığı veya donanımla güncelleştirilebilen bir alana erişimi eşleştirmek için bunları kullanabilirsiniz.Thus, you can use them to synchronize access to a field that can be updated by another thread, or by hardware.
Bu yöntemin çağrılması yalnızca tek bir bellek erişimini etkiler.Calling this method affects only a single memory access. Bir alana yönelik etkili eşitleme sağlamak için alana yapılan tüm erişimin veya kullanması gerekir VolatileRead VolatileWrite .To provide effective synchronization for a field, all access to the field must use VolatileRead or VolatileWrite.
Not
C# ' de, volatile
bir alanda değiştiricinin kullanılması, bu alana yapılan tüm erişimin veya kullanmasını garanti eder VolatileRead VolatileWrite .In C#, using the volatile
modifier on a field guarantees that all access to that field uses VolatileRead or VolatileWrite.
Şunlara uygulanır
VolatileWrite(UInt16, UInt16)
Önemli
Bu API, CLS uyumlu değildir.
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer.
public:
static void VolatileWrite(System::UInt16 % address, System::UInt16 value);
public static void VolatileWrite (ref ushort address, ushort value);
[System.CLSCompliant(false)]
public static void VolatileWrite (ref ushort address, ushort value);
static member VolatileWrite : uint16 * uint16 -> unit
[<System.CLSCompliant(false)>]
static member VolatileWrite : uint16 * uint16 -> unit
Public Shared Sub VolatileWrite (ByRef address As UShort, value As UShort)
Parametreler
- address
- UInt16
Değerin yazılacağı alan.The field to which the value is to be written.
- value
- UInt16
Yazılacak değer.The value to be written.
- Öznitelikler
Açıklamalar
VolatileRead ve VolatileWrite özel eşitleme durumları içindir.VolatileRead and VolatileWrite are for special cases of synchronization. Normal koşullarda, C# lock
deyimleri, Visual Basic SyncLock
deyimleri ve Monitor sınıfı daha kolay alternatifler sağlar.Under normal circumstances, the C# lock
statement, the Visual Basic SyncLock
statement, and the Monitor class provide easier alternatives.
Çok işlemcili bir sistemde, VolatileWrite bir bellek konumuna yazılan değerin hemen tüm işlemcilere görünür olmasını sağlar.On a multiprocessor system, VolatileWrite ensures that a value written to a memory location is immediately visible to all processors. Bu işlem, işlemci önbelleklerinin temizlenmesini gerektirebilir.This might require flushing processor caches.
Tek işlemcili bir sistemde bile, VolatileRead VolatileWrite bir değerin önbelleğe alınıp yazılmamasını sağlayın (örneğin, bir işlemci kaydındaki).Even on a uniprocessor system, VolatileRead and VolatileWrite ensure that a value is read or written to memory, and not cached (for example, in a processor register). Bu nedenle, başka bir iş parçacığı veya donanımla güncelleştirilebilen bir alana erişimi eşleştirmek için bunları kullanabilirsiniz.Thus, you can use them to synchronize access to a field that can be updated by another thread, or by hardware.
Bu yöntemin çağrılması yalnızca tek bir bellek erişimini etkiler.Calling this method affects only a single memory access. Bir alana yönelik etkili eşitleme sağlamak için alana yapılan tüm erişimin veya kullanması gerekir VolatileRead VolatileWrite .To provide effective synchronization for a field, all access to the field must use VolatileRead or VolatileWrite.
Not
C# ' de, volatile
bir alanda değiştiricinin kullanılması, bu alana yapılan tüm erişimin veya kullanmasını garanti eder VolatileRead VolatileWrite .In C#, using the volatile
modifier on a field guarantees that all access to that field uses VolatileRead or VolatileWrite.
Şunlara uygulanır
VolatileWrite(Single, Single)
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer.
public:
static void VolatileWrite(float % address, float value);
public static void VolatileWrite (ref float address, float value);
static member VolatileWrite : single * single -> unit
Public Shared Sub VolatileWrite (ByRef address As Single, value As Single)
Parametreler
- address
- Single
Değerin yazılacağı alan.The field to which the value is to be written.
- value
- Single
Yazılacak değer.The value to be written.
Açıklamalar
VolatileRead ve VolatileWrite özel eşitleme durumları içindir.VolatileRead and VolatileWrite are for special cases of synchronization. Normal koşullarda, C# lock
deyimleri, Visual Basic SyncLock
deyimleri ve Monitor sınıfı daha kolay alternatifler sağlar.Under normal circumstances, the C# lock
statement, the Visual Basic SyncLock
statement, and the Monitor class provide easier alternatives.
Çok işlemcili bir sistemde, VolatileWrite bir bellek konumuna yazılan değerin hemen tüm işlemcilere görünür olmasını sağlar.On a multiprocessor system, VolatileWrite ensures that a value written to a memory location is immediately visible to all processors. Bu işlem, işlemci önbelleklerinin temizlenmesini gerektirebilir.This might require flushing processor caches.
Tek işlemcili bir sistemde bile, VolatileRead VolatileWrite bir değerin önbelleğe alınıp yazılmamasını sağlayın (örneğin, bir işlemci kaydındaki).Even on a uniprocessor system, VolatileRead and VolatileWrite ensure that a value is read or written to memory, and not cached (for example, in a processor register). Bu nedenle, başka bir iş parçacığı veya donanımla güncelleştirilebilen bir alana erişimi eşleştirmek için bunları kullanabilirsiniz.Thus, you can use them to synchronize access to a field that can be updated by another thread, or by hardware.
Bu yöntemin çağrılması yalnızca tek bir bellek erişimini etkiler.Calling this method affects only a single memory access. Bir alana yönelik etkili eşitleme sağlamak için alana yapılan tüm erişimin veya kullanması gerekir VolatileRead VolatileWrite .To provide effective synchronization for a field, all access to the field must use VolatileRead or VolatileWrite.
Not
C# ' de, volatile
bir alanda değiştiricinin kullanılması, bu alana yapılan tüm erişimin veya kullanmasını garanti eder VolatileRead VolatileWrite .In C#, using the volatile
modifier on a field guarantees that all access to that field uses VolatileRead or VolatileWrite.
Şunlara uygulanır
VolatileWrite(SByte, SByte)
Önemli
Bu API, CLS uyumlu değildir.
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer.
public:
static void VolatileWrite(System::SByte % address, System::SByte value);
public static void VolatileWrite (ref sbyte address, sbyte value);
[System.CLSCompliant(false)]
public static void VolatileWrite (ref sbyte address, sbyte value);
static member VolatileWrite : sbyte * sbyte -> unit
[<System.CLSCompliant(false)>]
static member VolatileWrite : sbyte * sbyte -> unit
Public Shared Sub VolatileWrite (ByRef address As SByte, value As SByte)
Parametreler
- address
- SByte
Değerin yazılacağı alan.The field to which the value is to be written.
- value
- SByte
Yazılacak değer.The value to be written.
- Öznitelikler
Açıklamalar
VolatileRead ve VolatileWrite özel eşitleme durumları içindir.VolatileRead and VolatileWrite are for special cases of synchronization. Normal koşullarda, C# lock
deyimleri, Visual Basic SyncLock
deyimleri ve Monitor sınıfı daha kolay alternatifler sağlar.Under normal circumstances, the C# lock
statement, the Visual Basic SyncLock
statement, and the Monitor class provide easier alternatives.
Çok işlemcili bir sistemde, VolatileWrite bir bellek konumuna yazılan değerin hemen tüm işlemcilere görünür olmasını sağlar.On a multiprocessor system, VolatileWrite ensures that a value written to a memory location is immediately visible to all processors. Bu işlem, işlemci önbelleklerinin temizlenmesini gerektirebilir.This might require flushing processor caches.
Tek işlemcili bir sistemde bile, VolatileRead VolatileWrite bir değerin önbelleğe alınıp yazılmamasını sağlayın (örneğin, bir işlemci kaydındaki).Even on a uniprocessor system, VolatileRead and VolatileWrite ensure that a value is read or written to memory, and not cached (for example, in a processor register). Bu nedenle, başka bir iş parçacığı veya donanımla güncelleştirilebilen bir alana erişimi eşleştirmek için bunları kullanabilirsiniz.Thus, you can use them to synchronize access to a field that can be updated by another thread, or by hardware.
Bu yöntemin çağrılması yalnızca tek bir bellek erişimini etkiler.Calling this method affects only a single memory access. Bir alana yönelik etkili eşitleme sağlamak için alana yapılan tüm erişimin veya kullanması gerekir VolatileRead VolatileWrite .To provide effective synchronization for a field, all access to the field must use VolatileRead or VolatileWrite.
Not
C# ' de, volatile
bir alanda değiştiricinin kullanılması, bu alana yapılan tüm erişimin veya kullanmasını garanti eder VolatileRead VolatileWrite .In C#, using the volatile
modifier on a field guarantees that all access to that field uses VolatileRead or VolatileWrite.
Şunlara uygulanır
VolatileWrite(Object, Object)
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer.
public:
static void VolatileWrite(System::Object ^ % address, System::Object ^ value);
public static void VolatileWrite (ref object address, object value);
static member VolatileWrite : obj * obj -> unit
Public Shared Sub VolatileWrite (ByRef address As Object, value As Object)
Parametreler
- address
- Object
Değerin yazılacağı alan.The field to which the value is to be written.
- value
- Object
Yazılacak değer.The value to be written.
Açıklamalar
VolatileRead ve VolatileWrite özel eşitleme durumları içindir.VolatileRead and VolatileWrite are for special cases of synchronization. Normal koşullarda, C# lock
deyimleri, Visual Basic SyncLock
deyimleri ve Monitor sınıfı daha kolay alternatifler sağlar.Under normal circumstances, the C# lock
statement, the Visual Basic SyncLock
statement, and the Monitor class provide easier alternatives.
Çok işlemcili bir sistemde, VolatileWrite bir bellek konumuna yazılan değerin hemen tüm işlemcilere görünür olmasını sağlar.On a multiprocessor system, VolatileWrite ensures that a value written to a memory location is immediately visible to all processors. Bu işlem, işlemci önbelleklerinin temizlenmesini gerektirebilir.This might require flushing processor caches.
Tek işlemcili bir sistemde bile, VolatileRead VolatileWrite bir değerin önbelleğe alınıp yazılmamasını sağlayın (örneğin, bir işlemci kaydındaki).Even on a uniprocessor system, VolatileRead and VolatileWrite ensure that a value is read or written to memory, and not cached (for example, in a processor register). Bu nedenle, başka bir iş parçacığı veya donanımla güncelleştirilebilen bir alana erişimi eşleştirmek için bunları kullanabilirsiniz.Thus, you can use them to synchronize access to a field that can be updated by another thread, or by hardware.
Bu yöntemin çağrılması yalnızca tek bir bellek erişimini etkiler.Calling this method affects only a single memory access. Bir alana yönelik etkili eşitleme sağlamak için alana yapılan tüm erişimin veya kullanması gerekir VolatileRead VolatileWrite .To provide effective synchronization for a field, all access to the field must use VolatileRead or VolatileWrite.
Not
C# ' de, volatile
bir alanda değiştiricinin kullanılması, bu alana yapılan tüm erişimin veya kullanmasını garanti eder VolatileRead VolatileWrite .In C#, using the volatile
modifier on a field guarantees that all access to that field uses VolatileRead or VolatileWrite.
Şunlara uygulanır
VolatileWrite(IntPtr, IntPtr)
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer.
public:
static void VolatileWrite(IntPtr % address, IntPtr value);
public static void VolatileWrite (ref IntPtr address, IntPtr value);
static member VolatileWrite : nativeint * nativeint -> unit
Public Shared Sub VolatileWrite (ByRef address As IntPtr, value As IntPtr)
Parametreler
- address
- IntPtr
Değerin yazılacağı alan.The field to which the value is to be written.
- value
- IntPtr
Yazılacak değer.The value to be written.
Açıklamalar
VolatileRead ve VolatileWrite özel eşitleme durumları içindir.VolatileRead and VolatileWrite are for special cases of synchronization. Normal koşullarda, C# lock
deyimleri, Visual Basic SyncLock
deyimleri ve Monitor sınıfı daha kolay alternatifler sağlar.Under normal circumstances, the C# lock
statement, the Visual Basic SyncLock
statement, and the Monitor class provide easier alternatives.
Çok işlemcili bir sistemde, VolatileWrite bir bellek konumuna yazılan değerin hemen tüm işlemcilere görünür olmasını sağlar.On a multiprocessor system, VolatileWrite ensures that a value written to a memory location is immediately visible to all processors. Bu işlem, işlemci önbelleklerinin temizlenmesini gerektirebilir.This might require flushing processor caches.
Tek işlemcili bir sistemde bile, VolatileRead VolatileWrite bir değerin önbelleğe alınıp yazılmamasını sağlayın (örneğin, bir işlemci kaydındaki).Even on a uniprocessor system, VolatileRead and VolatileWrite ensure that a value is read or written to memory, and not cached (for example, in a processor register). Bu nedenle, başka bir iş parçacığı veya donanımla güncelleştirilebilen bir alana erişimi eşleştirmek için bunları kullanabilirsiniz.Thus, you can use them to synchronize access to a field that can be updated by another thread, or by hardware.
Bu yöntemin çağrılması yalnızca tek bir bellek erişimini etkiler.Calling this method affects only a single memory access. Bir alana yönelik etkili eşitleme sağlamak için alana yapılan tüm erişimin veya kullanması gerekir VolatileRead VolatileWrite .To provide effective synchronization for a field, all access to the field must use VolatileRead or VolatileWrite.
Not
C# ' de, volatile
bir alanda değiştiricinin kullanılması, bu alana yapılan tüm erişimin veya kullanmasını garanti eder VolatileRead VolatileWrite .In C#, using the volatile
modifier on a field guarantees that all access to that field uses VolatileRead or VolatileWrite.
Şunlara uygulanır
VolatileWrite(Int16, Int16)
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer.
public:
static void VolatileWrite(short % address, short value);
public static void VolatileWrite (ref short address, short value);
static member VolatileWrite : int16 * int16 -> unit
Public Shared Sub VolatileWrite (ByRef address As Short, value As Short)
Parametreler
- address
- Int16
Değerin yazılacağı alan.The field to which the value is to be written.
- value
- Int16
Yazılacak değer.The value to be written.
Açıklamalar
VolatileRead ve VolatileWrite özel eşitleme durumları içindir.VolatileRead and VolatileWrite are for special cases of synchronization. Normal koşullarda, C# lock
deyimleri, Visual Basic SyncLock
deyimleri ve Monitor sınıfı daha kolay alternatifler sağlar.Under normal circumstances, the C# lock
statement, the Visual Basic SyncLock
statement, and the Monitor class provide easier alternatives.
Çok işlemcili bir sistemde, VolatileWrite bir bellek konumuna yazılan değerin hemen tüm işlemcilere görünür olmasını sağlar.On a multiprocessor system, VolatileWrite ensures that a value written to a memory location is immediately visible to all processors. Bu işlem, işlemci önbelleklerinin temizlenmesini gerektirebilir.This might require flushing processor caches.
Tek işlemcili bir sistemde bile, VolatileRead VolatileWrite bir değerin önbelleğe alınıp yazılmamasını sağlayın (örneğin, bir işlemci kaydındaki).Even on a uniprocessor system, VolatileRead and VolatileWrite ensure that a value is read or written to memory, and not cached (for example, in a processor register). Bu nedenle, başka bir iş parçacığı veya donanımla güncelleştirilebilen bir alana erişimi eşleştirmek için bunları kullanabilirsiniz.Thus, you can use them to synchronize access to a field that can be updated by another thread, or by hardware.
Bu yöntemin çağrılması yalnızca tek bir bellek erişimini etkiler.Calling this method affects only a single memory access. Bir alana yönelik etkili eşitleme sağlamak için alana yapılan tüm erişimin veya kullanması gerekir VolatileRead VolatileWrite .To provide effective synchronization for a field, all access to the field must use VolatileRead or VolatileWrite.
Not
C# ' de, volatile
bir alanda değiştiricinin kullanılması, bu alana yapılan tüm erişimin veya kullanmasını garanti eder VolatileRead VolatileWrite .In C#, using the volatile
modifier on a field guarantees that all access to that field uses VolatileRead or VolatileWrite.
Şunlara uygulanır
VolatileWrite(Int32, Int32)
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer.
public:
static void VolatileWrite(int % address, int value);
public static void VolatileWrite (ref int address, int value);
static member VolatileWrite : int * int -> unit
Public Shared Sub VolatileWrite (ByRef address As Integer, value As Integer)
Parametreler
- address
- Int32
Değerin yazılacağı alan.The field to which the value is to be written.
- value
- Int32
Yazılacak değer.The value to be written.
Açıklamalar
VolatileRead ve VolatileWrite özel eşitleme durumları içindir.VolatileRead and VolatileWrite are for special cases of synchronization. Normal koşullarda, C# lock
deyimleri, Visual Basic SyncLock
deyimleri ve Monitor sınıfı daha kolay alternatifler sağlar.Under normal circumstances, the C# lock
statement, the Visual Basic SyncLock
statement, and the Monitor class provide easier alternatives.
Çok işlemcili bir sistemde, VolatileWrite bir bellek konumuna yazılan değerin hemen tüm işlemcilere görünür olmasını sağlar.On a multiprocessor system, VolatileWrite ensures that a value written to a memory location is immediately visible to all processors. Bu işlem, işlemci önbelleklerinin temizlenmesini gerektirebilir.This might require flushing processor caches.
Tek işlemcili bir sistemde bile, VolatileRead VolatileWrite bir değerin önbelleğe alınıp yazılmamasını sağlayın (örneğin, bir işlemci kaydındaki).Even on a uniprocessor system, VolatileRead and VolatileWrite ensure that a value is read or written to memory, and not cached (for example, in a processor register). Bu nedenle, başka bir iş parçacığı veya donanımla güncelleştirilebilen bir alana erişimi eşleştirmek için bunları kullanabilirsiniz.Thus, you can use them to synchronize access to a field that can be updated by another thread, or by hardware.
Bu yöntemin çağrılması yalnızca tek bir bellek erişimini etkiler.Calling this method affects only a single memory access. Bir alana yönelik etkili eşitleme sağlamak için alana yapılan tüm erişimin veya kullanması gerekir VolatileRead VolatileWrite .To provide effective synchronization for a field, all access to the field must use VolatileRead or VolatileWrite.
Not
C# ' de, volatile
bir alanda değiştiricinin kullanılması, bu alana yapılan tüm erişimin veya kullanmasını garanti eder VolatileRead VolatileWrite .In C#, using the volatile
modifier on a field guarantees that all access to that field uses VolatileRead or VolatileWrite.
Şunlara uygulanır
VolatileWrite(Double, Double)
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer.
public:
static void VolatileWrite(double % address, double value);
public static void VolatileWrite (ref double address, double value);
static member VolatileWrite : double * double -> unit
Public Shared Sub VolatileWrite (ByRef address As Double, value As Double)
Parametreler
- address
- Double
Değerin yazılacağı alan.The field to which the value is to be written.
- value
- Double
Yazılacak değer.The value to be written.
Açıklamalar
VolatileRead ve VolatileWrite özel eşitleme durumları içindir.VolatileRead and VolatileWrite are for special cases of synchronization. Normal koşullarda, C# lock
deyimleri, Visual Basic SyncLock
deyimleri ve Monitor sınıfı daha kolay alternatifler sağlar.Under normal circumstances, the C# lock
statement, the Visual Basic SyncLock
statement, and the Monitor class provide easier alternatives.
Çok işlemcili bir sistemde, VolatileWrite bir bellek konumuna yazılan değerin hemen tüm işlemcilere görünür olmasını sağlar.On a multiprocessor system, VolatileWrite ensures that a value written to a memory location is immediately visible to all processors. Bu işlem, işlemci önbelleklerinin temizlenmesini gerektirebilir.This might require flushing processor caches.
Tek işlemcili bir sistemde bile, VolatileRead VolatileWrite bir değerin önbelleğe alınıp yazılmamasını sağlayın (örneğin, bir işlemci kaydındaki).Even on a uniprocessor system, VolatileRead and VolatileWrite ensure that a value is read or written to memory, and not cached (for example, in a processor register). Bu nedenle, başka bir iş parçacığı veya donanımla güncelleştirilebilen bir alana erişimi eşleştirmek için bunları kullanabilirsiniz.Thus, you can use them to synchronize access to a field that can be updated by another thread, or by hardware.
Bu yöntemin çağrılması yalnızca tek bir bellek erişimini etkiler.Calling this method affects only a single memory access. Bir alana yönelik etkili eşitleme sağlamak için alana yapılan tüm erişimin veya kullanması gerekir VolatileRead VolatileWrite .To provide effective synchronization for a field, all access to the field must use VolatileRead or VolatileWrite.
Not
C# ' de, volatile
bir alanda değiştiricinin kullanılması, bu alana yapılan tüm erişimin veya kullanmasını garanti eder VolatileRead VolatileWrite .In C#, using the volatile
modifier on a field guarantees that all access to that field uses VolatileRead or VolatileWrite.
Şunlara uygulanır
VolatileWrite(Byte, Byte)
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer.
public:
static void VolatileWrite(System::Byte % address, System::Byte value);
public static void VolatileWrite (ref byte address, byte value);
static member VolatileWrite : byte * byte -> unit
Public Shared Sub VolatileWrite (ByRef address As Byte, value As Byte)
Parametreler
- address
- Byte
Değerin yazılacağı alan.The field to which the value is to be written.
- value
- Byte
Yazılacak değer.The value to be written.
Açıklamalar
VolatileRead ve VolatileWrite özel eşitleme durumları içindir.VolatileRead and VolatileWrite are for special cases of synchronization. Normal koşullarda, C# lock
deyimleri, Visual Basic SyncLock
deyimleri ve Monitor sınıfı daha kolay alternatifler sağlar.Under normal circumstances, the C# lock
statement, the Visual Basic SyncLock
statement, and the Monitor class provide easier alternatives.
Çok işlemcili bir sistemde, VolatileWrite bir bellek konumuna yazılan değerin hemen tüm işlemcilere görünür olmasını sağlar.On a multiprocessor system, VolatileWrite ensures that a value written to a memory location is immediately visible to all processors. Bu işlem, işlemci önbelleklerinin temizlenmesini gerektirebilir.This might require flushing processor caches.
Tek işlemcili bir sistemde bile, VolatileRead VolatileWrite bir değerin önbelleğe alınıp yazılmamasını sağlayın (örneğin, bir işlemci kaydındaki).Even on a uniprocessor system, VolatileRead and VolatileWrite ensure that a value is read or written to memory, and not cached (for example, in a processor register). Bu nedenle, başka bir iş parçacığı veya donanımla güncelleştirilebilen bir alana erişimi eşleştirmek için bunları kullanabilirsiniz.Thus, you can use them to synchronize access to a field that can be updated by another thread, or by hardware.
Bu yöntemin çağrılması yalnızca tek bir bellek erişimini etkiler.Calling this method affects only a single memory access. Bir alana yönelik etkili eşitleme sağlamak için alana yapılan tüm erişimin veya kullanması gerekir VolatileRead VolatileWrite .To provide effective synchronization for a field, all access to the field must use VolatileRead or VolatileWrite.
Not
C# ' de, volatile
bir alanda değiştiricinin kullanılması, bu alana yapılan tüm erişimin veya kullanmasını garanti eder VolatileRead VolatileWrite .In C#, using the volatile
modifier on a field guarantees that all access to that field uses VolatileRead or VolatileWrite.
Şunlara uygulanır
VolatileWrite(Int64, Int64)
Değeri, bir alana hemen yazar, böylece değer bilgisayardaki tüm işlemciler için görünür olur.Writes a value to a field immediately, so that the value is visible to all processors in the computer.
public:
static void VolatileWrite(long % address, long value);
public static void VolatileWrite (ref long address, long value);
static member VolatileWrite : int64 * int64 -> unit
Public Shared Sub VolatileWrite (ByRef address As Long, value As Long)
Parametreler
- address
- Int64
Değerin yazılacağı alan.The field to which the value is to be written.
- value
- Int64
Yazılacak değer.The value to be written.
Açıklamalar
VolatileRead ve VolatileWrite özel eşitleme durumları içindir.VolatileRead and VolatileWrite are for special cases of synchronization. Normal koşullarda, C# lock
deyimleri, Visual Basic SyncLock
deyimleri ve Monitor sınıfı daha kolay alternatifler sağlar.Under normal circumstances, the C# lock
statement, the Visual Basic SyncLock
statement, and the Monitor class provide easier alternatives.
Çok işlemcili bir sistemde, VolatileWrite bir bellek konumuna yazılan değerin hemen tüm işlemcilere görünür olmasını sağlar.On a multiprocessor system, VolatileWrite ensures that a value written to a memory location is immediately visible to all processors. Bu işlem, işlemci önbelleklerinin temizlenmesini gerektirebilir.This might require flushing processor caches.
Tek işlemcili bir sistemde bile, VolatileRead VolatileWrite bir değerin önbelleğe alınıp yazılmamasını sağlayın (örneğin, bir işlemci kaydındaki).Even on a uniprocessor system, VolatileRead and VolatileWrite ensure that a value is read or written to memory, and not cached (for example, in a processor register). Bu nedenle, başka bir iş parçacığı veya donanımla güncelleştirilebilen bir alana erişimi eşleştirmek için bunları kullanabilirsiniz.Thus, you can use them to synchronize access to a field that can be updated by another thread, or by hardware.
Bu yöntemin çağrılması yalnızca tek bir bellek erişimini etkiler.Calling this method affects only a single memory access. Bir alana yönelik etkili eşitleme sağlamak için alana yapılan tüm erişimin veya kullanması gerekir VolatileRead VolatileWrite .To provide effective synchronization for a field, all access to the field must use VolatileRead or VolatileWrite.
Not
C# ' de, volatile
bir alanda değiştiricinin kullanılması, bu alana yapılan tüm erişimin veya kullanmasını garanti eder VolatileRead VolatileWrite .In C#, using the volatile
modifier on a field guarantees that all access to that field uses VolatileRead or VolatileWrite.