CocoaPods trunk is moving to be read-only. Read more on the blog, there are 6 months to go.

ConcurrentDictionary 0.1.0

ConcurrentDictionary 0.1.0

Maintained by Prabal.



  • By
  • Prabal

ConcurrentDictionary

Counterpart to ConcurrentHashMap Java Collection. This class utilises the power of the libdispatch library to provide synchronuos reads and exclusive writes to give you a thread-safe key-value data structure, that is, it can maintain data consistency even when multiple threads are trying to read from and write to the data structure.

How it works

Read guidelines here The dictionary creates a concurrent dispatch queue solely for the purpose of reading from / writing to this dictionary. We use dispatch_sync for reading synchronously and dispatch_barrier_async for writing exclusively to the data.

Get started

  1. Install with CocoaPods or clone from github.
  2. #import "ConcurrentDictionary.h" in your code and start using.

Usage