dotnet / dotnet/dotnet-api-docs

Are methods threadsafe for 64-bit types

Open
#1,934 0 comments 0 reactions 0 assignees View on GitHub
area-System.Threading dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

The documentation doesn't explicitly say that Volatile.Read and Volatile.Write are thread-safe for 64-bit types (double and long). Can you clarify this?

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 85d92e3c-1fdd-db63-1513-713fdb615096
* Version Independent ID: 64721c0b-ba92-e551-dab8-d5631234fcaa
* Content: [Volatile.Write Method (System.Threading)](https://docs.microsoft.com/en-us/dotnet/api/system.threading.volatile.write?view=netframework-4.7.2#System_Threading_Volatile_Write_System_Double__System_Double_)
* Content Source: [xml/System.Threading/Volatile.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Threading/Volatile.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.