Skip to content

Lock-free implementation #14

Description

@ZipFile

<stdatomic.h> can be used in C extension module ("sonyflake.c"), elapsed_time and combined_sequence can be packed into a single atomic_uint. Bonus points:

  • figuring out how to share same state for both sonyflake_next and sonyflake_next_n
  • robust multithreaded benchmark

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions