From 6c0ea9c39cd316b4c15ad75bad35ccb8e3f17f22 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 19 Feb 2011 16:28:01 -0800 Subject: [PATCH] Add explanatory threading comment to -[ChangesController _reloadPackages:]. --- MobileCydia.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MobileCydia.mm b/MobileCydia.mm index 17b08bd4..bda674d8 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7349,6 +7349,8 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } return self; } +// this mostly works because reloadData (below) is @synchronized (database_) +// XXX: that said, I've been running into problems with NSRangeExceptions :( - (void) _reloadPackages:(NSArray *)packages { CFRelease(packages_); packages_ = CFArrayCreateMutable(kCFAllocatorDefault, [packages count], NULL); -- 2.50.0