Skip to content

Use LazyLock to synchronize v1/v6 context initialization#875

Merged
KodrAus merged 3 commits intomainfrom
fix/context-ordering
Mar 26, 2026
Merged

Use LazyLock to synchronize v1/v6 context initialization#875
KodrAus merged 3 commits intomainfrom
fix/context-ordering

Conversation

@KodrAus
Copy link
Copy Markdown
Member

@KodrAus KodrAus commented Mar 26, 2026

Closes #730

Instead of using a home-grown lock-free initialization primitive to synchronize seeding of the shared UUID v1/v6 context, use the standard library's LazyLock. We weren't able to do this until our MSRV bumped past 1.80.0, which it did fairly recently.

@KodrAus KodrAus merged commit 996dade into main Mar 26, 2026
22 checks passed
@KodrAus KodrAus deleted the fix/context-ordering branch March 26, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Initialization of CONTEXT in timestamp::context::shared_context() not thread-safe

1 participant