Skip to content

Acquire locks on arbitrary strings by hashing over fixed set of locks

License

Notifications You must be signed in to change notification settings

gammazero/keymutex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keymutex

Acquire locks on arbitrary strings by hashing over a fixed set of locks.

KeyMutex uses a FNV-1a 32-bit hash of an input string to select a mutex from a list of locks. The hash is computed in a way that does not cause allocation by converting string to bytes, as with the standard library.

About

Acquire locks on arbitrary strings by hashing over fixed set of locks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages