Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Use AtomicU64 ids #910

Merged
merged 1 commit into from
Jun 15, 2018
Merged

Use AtomicU64 ids #910

merged 1 commit into from
Jun 15, 2018

Conversation

alexheretic
Copy link
Member

Both of the id generation methods we use are a bit odd. The main one uses an AtomicU32 then cast to a u64. The cli uses a mutable static u64 with an unsafe block, I'm sure it's fine with the single-thread usage, but still.

...AtomicU64 to the rescue!

@Xanewok Xanewok merged commit 505092d into rust-lang:master Jun 15, 2018
@Xanewok
Copy link
Member

Xanewok commented Jun 15, 2018

Having it unified is good =) Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants