You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem with the library.
Sometimes the completion block of objectForKey is never called.
It seems that the dispatch_async doesn't work in TMDiskCache.
The text was updated successfully, but these errors were encountered:
If you look at - (id)objectForKey:(NSString *)key method of TMCache which calls - (void)objectForKey:(NSString *)key block:(TMCacheObjectBlock)block, you'll see that the first method sets dispatch_semaphore_t semaphore which is unlocked in the completion of the second method.
However, not every branch of the second method calls completion block. That causes deadlock on the whole thread.
I am not able to say if it is mistake in my code or in TMCache, but this might be helpful for whoever will be stuck at staring at tons of deadlocked threads in debugger like me.
Hey,
I have a problem with the library.
Sometimes the completion block of objectForKey is never called.
It seems that the dispatch_async doesn't work in TMDiskCache.
The text was updated successfully, but these errors were encountered: