Ignore:
Timestamp:
Jan 8, 2012, 8:22:43 PM (10 years ago)
Author:
livings124
Message:

another concurrency safety change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r13149 r13150  
    22012201       
    22022202        //for each of the torrents to add, find if it already exists (and keep track of those we've already added & those we need to remove)
    2203         [allTorrents enumerateObjectsWithOptions: NSEnumerationConcurrent usingBlock:^(id objAll, NSUInteger previousIndex, BOOL * stop) {
     2203        [allTorrents enumerateObjectsWithOptions: 0 usingBlock:^(id objAll, NSUInteger previousIndex, BOOL * stop) {
    22042204            const NSUInteger currentIndex = [fDisplayedTorrents indexOfObjectAtIndexes: removePreviousIndexes options: NSEnumerationConcurrent passingTest: ^(id objDisplay, NSUInteger idx, BOOL *stop) {
    22052205                return (BOOL)(objAll == objDisplay);
     
    22312231                if (fAddingTransfers)
    22322232                {
    2233                     NSIndexSet * newAddIndexes = [allTorrents indexesOfObjectsWithOptions: NSEnumerationConcurrent passingTest: ^BOOL(id obj, NSUInteger idx, BOOL * stop) {
     2233                    NSIndexSet * newAddIndexes = [allTorrents indexesOfObjectsAtIndexes: addIndexes options: NSEnumerationConcurrent passingTest: ^BOOL(id obj, NSUInteger idx, BOOL * stop) {
    22342234                        return [fAddingTransfers containsObject: obj];
    22352235                    }];
Note: See TracChangeset for help on using the changeset viewer.