Skip to content

Lock-free implementation #14

@ZipFile

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

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