Skip to content

Conversation

@taiki-e
Copy link
Owner

@taiki-e taiki-e commented Mar 21, 2022

Note: this patch currently adds generic atomic type to the main portable-atomic crate, but should be to the portable-atomic-util crate.

  • Support for various operations on Copy types and support for swap and store on non-Copy types.
  • Support for primitives, immutable references, function pointers, NonNull, NoneZero, etc.
  • Support for user-defined structs and enums, including those with multiple fields and padding. (via #[derive(Atomicable)])
  • Support for user-defined unions. (via #[derive(Atomicable)])

This should meet the requirements that I said in #1.

Requirements:

Closes #1

@taiki-e taiki-e force-pushed the generic branch 6 times, most recently from ab2a285 to da35a39 Compare March 25, 2022 16:11
@taiki-e taiki-e force-pushed the generic branch 2 times, most recently from 318ea8e to bf30a6e Compare March 25, 2022 19:26
@taiki-e taiki-e force-pushed the generic branch 3 times, most recently from f4b7e57 to d876bf3 Compare May 1, 2022 07:03
@taiki-e taiki-e force-pushed the generic branch 2 times, most recently from 06262ed to bbfda0a Compare July 8, 2022 13:46
bors bot added a commit that referenced this pull request Sep 12, 2022
38: Add empty portable-atomic-util crate r=taiki-e a=taiki-e

This adds an empty crate named `portable-atomic-util`.

For now, I'm considering putting the features proposed in #1 (#8) and #37 into this crate, but they may be merged into the main `portable-atomic` crate in the future.


Co-authored-by: Taiki Endo <te316e89@gmail.com>
@taiki-e taiki-e added the A-portable-atomic-util Area: related to portable-atomic-util crate label Jan 12, 2023
@taiki-e taiki-e force-pushed the main branch 2 times, most recently from a4d8248 to 6d90a3d Compare July 29, 2023 08:13
@taiki-e taiki-e force-pushed the main branch 3 times, most recently from a368389 to eeb0235 Compare February 24, 2025 12:09
@taiki-e taiki-e force-pushed the main branch 5 times, most recently from 77c5d0d to 813bf8f Compare March 7, 2025 16:12
@taiki-e taiki-e force-pushed the main branch 5 times, most recently from 2ef9f6c to e5eaaac Compare March 20, 2025 09:55
@taiki-e taiki-e force-pushed the main branch 3 times, most recently from 3acead0 to 6576213 Compare April 7, 2025 14:13
@taiki-e taiki-e force-pushed the main branch 2 times, most recently from d03a536 to 22d689c Compare June 5, 2025 20:47
@taiki-e taiki-e force-pushed the main branch 2 times, most recently from 95876ed to 3d959b6 Compare August 23, 2025 09:17
@taiki-e taiki-e force-pushed the main branch 4 times, most recently from c7a51b4 to d118cf0 Compare September 7, 2025 08:08
@taiki-e taiki-e force-pushed the main branch 4 times, most recently from 5c72bf2 to 8cc76fa Compare September 14, 2025 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-portable-atomic-util Area: related to portable-atomic-util crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provides generic Atomic<T> type

1 participant