Skip to content

gosis/IdentifiableLock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

IdentifiableLock

Identifiable mutex lock which does thread locking of Hashable instances per their identifiers Allows only one identifier to be changed at the same time

  • Per identifier locking is implented using a Dictionary of objects with hasValue string as key and DispatchSemaphore as value
  • When performChanges: is called with given object a semaphore.wait() is called synchronously until ongoing changes to identifier in question are finished

About

Identifiable mutex lock

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages