Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions text/0000-atomic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
- Feature Name:
- Start Date: Sat Mar 21 18:55:24 CET 2015
- RFC PR: (leave this empty)
- Rust Issue: (leave this empty)

# Summary

Add `AtomicI32` and `AtomicU32`.

# Motivation

Atomic operations on these types are necessary to interact with certain system
APIs, e.g., futexes.

# Detailed design

Copy `AtomicIsize` and `AtomicUsize` and then `s/size/32/`.

# Drawbacks

More wrappers for what should simply be freestanding functions.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an alternative in here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Such freestanding functions would have to be intrinsics (not wrappers) and would have to be unsafe.


# Alternatives

None.

# Unresolved questions

None.