Skip to content

Commit

Permalink
Merge pull request #219 from isakcodes/patch-1
Browse files Browse the repository at this point in the history
Data Race definition should be more precise
  • Loading branch information
JohnTitor authored Oct 16, 2020
2 parents d7cb40b + 45a997a commit 737029d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/races.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Safe Rust guarantees an absence of data races, which are defined as:

* two or more threads concurrently accessing a location of memory
* one of them is a write
* one of them is unsynchronized
* one or more of them is a write
* one or more of them is unsynchronized

A data race has Undefined Behavior, and is therefore impossible to perform
in Safe Rust. Data races are *mostly* prevented through Rust's ownership system:
Expand Down

0 comments on commit 737029d

Please sign in to comment.