ibireme / YYCache

High performance cache framework for iOS.
MIT License
2.37k stars 505 forks source link

内存缓存和磁盘缓存锁的使用 #51

Closed xylxi closed 8 years ago

xylxi commented 8 years ago

为什么内存缓存中使用pthread_mutex_t,进行加锁而磁盘缓存中使用dispatch_semaphore_t信号量进行加锁呢?希望能解答疑惑,拜托拜托

ibireme commented 8 years ago

https://github.com/ibireme/YYCache/issues/50