Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce (global) default config file locking #1610

Closed
wants to merge 1 commit into from

Commits on Aug 11, 2023

  1. Introduce (global) default config file locking

    Adds LockDefault() and UnlockDefault() which lock an associate file
    mapping to the same default containers file that Write() selects.
    This functionality allows for multiple read-and-write operations
    to be atomically executed by serializing access from multiple
    updaters.
    
    As an example, if two parallel updaters are inserting a different
    entry into a map, one will likely be omitted from being
    overwritten with data from a stale read. Instead, using these
    functions, callers can coordinate, ensuring writes are never
    interposed between another caller's read-update pattern.
    
    Signed-off-by: Jason T. Greene <[email protected]>
    n1hility committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    4b0bff6 View commit details
    Browse the repository at this point in the history