Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Feature Request: Locking the Has-and-Save Transaction #36

Open
landall opened this issue Dec 5, 2018 · 0 comments
Open

Feature Request: Locking the Has-and-Save Transaction #36

landall opened this issue Dec 5, 2018 · 0 comments

Comments

@landall
Copy link

landall commented Dec 5, 2018

I have a scene to let a user register an unique name or something else.

I think it may be done by an atom operation using the locks when opening files.

  • If having the key, return false.
  • If not, create a new key with the giving key name and return true.

After that, we can update the value of the key without locking.

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

No branches or pull requests

1 participant