Skip to content

Commit

Permalink
remove YYDispatchQueuePool due to dynamic library compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibireme committed Mar 15, 2016
1 parent e5e05cc commit 8c7c93b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
9 changes: 0 additions & 9 deletions YYWebImage/Cache/YYMemoryCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,10 @@
#import <QuartzCore/QuartzCore.h>
#import <pthread.h>

#if __has_include("YYDispatchQueuePool.h")
#import "YYDispatchQueuePool.h"
#endif

#ifdef YYDispatchQueuePool_h
static inline dispatch_queue_t YYMemoryCacheGetReleaseQueue() {
return YYDispatchQueueGetForQOS(NSQualityOfServiceUtility);
}
#else
static inline dispatch_queue_t YYMemoryCacheGetReleaseQueue() {
return dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0);
}
#endif

/**
A node in linked map.
Expand Down
11 changes: 0 additions & 11 deletions YYWebImage/YYImageCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,14 @@
#import "YYCache.h"
#endif

#if __has_include("YYDispatchQueuePool.h")
#import "YYDispatchQueuePool.h"
#endif


static inline dispatch_queue_t YYImageCacheIOQueue() {
#ifdef YYDispatchQueuePool_h
return YYDispatchQueueGetForQOS(NSQualityOfServiceDefault);
#else
return dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
#endif
}

static inline dispatch_queue_t YYImageCacheDecodeQueue() {
#ifdef YYDispatchQueuePool_h
return YYDispatchQueueGetForQOS(NSQualityOfServiceUtility);
#else
return dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0);
#endif
}


Expand Down
7 changes: 0 additions & 7 deletions YYWebImage/YYWebImageOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
#import "YYImage.h"
#endif

#if __has_include("YYDispatchQueuePool.h")
#import "YYDispatchQueuePool.h"
#endif

#define MIN_PROGRESSIVE_TIME_INTERVAL 0.2
#define MIN_PROGRESSIVE_BLUR_TIME_INTERVAL 0.4
Expand Down Expand Up @@ -216,9 +213,6 @@ + (NSThread *)_networkThread {

/// Global image queue, used for image reading and decoding.
+ (dispatch_queue_t)_imageQueue {
#ifdef YYDispatchQueuePool_h
return YYDispatchQueueGetForQOS(NSQualityOfServiceUtility);
#else
#define MAX_QUEUE_COUNT 16
static int queueCount;
static dispatch_queue_t queues[MAX_QUEUE_COUNT];
Expand All @@ -243,7 +237,6 @@ + (dispatch_queue_t)_imageQueue {
if (cur < 0) cur = -cur;
return queues[(cur) % queueCount];
#undef MAX_QUEUE_COUNT
#endif
}

- (instancetype)init {
Expand Down

0 comments on commit 8c7c93b

Please sign in to comment.